Out of the many dynamic routing protocols RIP or RIPv2 is probably the most basic and easy to setup. The biggest difference between RIP and RIPv2 is that RIP does not support VLSM (Variable Length Subnet Masking) and RIPv2 does. For the modern network we need to use at least RIPv2 for proper routing.
In order to have packets flowing through the modern network you need Physical Equipment (Layer 1), you need aggregated devices such as switches for quick transport (layer 2), and finally you need routers/layer 3 switches that can route traffic on an ip network (layer 3). Each hop or interface along a path needs to have a layer 3 ip address IPv4 or IPv6 in order for the packet to traverse the ip network. The way that all layer 3 devices make decisions to forward traffic is a routing table. The three ways a layer 3 devices learns and adds routes to its routing table are: