In networking, as the size of the network increases and multiple routers are connected together, it becomes difficult to manually configure and manage all routes, and in such situations, dynamic routing is used because it allows routers to automatically learn and update routes, which makes communication between networks easier and more efficient.
Dynamic routing is a method of routing in which routers automatically learn, update, and maintain routing information by communicating with other routers using routing protocols so that data packets can be forwarded through the best possible path without manual configuration of each route.
👉 Dynamic routing means:
Routers automatically find and update the best path to send data between networks.
Dynamic routing works on the idea that routers should not depend on manual configuration for every route, and instead, they should be able to exchange information with other routers and make decisions on their own.
👉 This makes the network smart and self-managing.
In dynamic routing, routers continuously exchange information with each other using routing protocols, and based on this information, they build and update their routing tables, and whenever a packet arrives, the router checks the destination IP address and selects the best path available, and if there is any change in the network such as a link failure or addition of a new network, the routers automatically update their routing tables and adjust the path accordingly.
Routers identify other routers in the network and form connections with them.
Routers share details about networks they know using routing protocols.
Each router builds its routing table automatically based on received information.
Router selects the best path using metrics like shortest path or least cost.
Router forwards packets based on the best available route.
If any network change occurs, routers automatically update their routing tables.
Dynamic routing uses protocols such as:
👉 These protocols help routers communicate and share routing information.
In dynamic routing, routers need a way to communicate with each other so that they can share information about different networks, and for this purpose, routing protocols are used, among which RIP is one of the most basic and widely used protocols because it is simple to understand and easy to configure.
RIP (Routing Information Protocol) is a dynamic routing protocol that allows routers to automatically share routing information and determine the best path based on the number of hops required to reach a destination network.
👉 RIP means:
Routers share their routes with each other and choose the path with the least number of hops.
RIP works on a simple idea where routers exchange their routing tables with neighboring routers at regular intervals, and based on this shared information, each router updates its own routing table and selects the best path to reach different networks.
👉 This process keeps repeating continuously.
👉 Hop count means the number of routers a packet passes through to reach the destination network.
👉 RIP always selects the path with minimum hop count.
👉 This is why RIP is used only in small networks.
When RIP is enabled, routers continuously share routing information with each other every 30 seconds, and based on the received updates, routers modify their routing tables, and if a route becomes unavailable, it is removed after some time, which helps in maintaining updated and accurate routing information.
RIP is a very basic routing protocol that is mainly used for learning and small network setups, but it is not preferred in large modern networks because of its limitations like hop count restriction and slow performance.
After understanding RIP as a dynamic routing protocol, the next important step is to configure RIP on routers so that they can automatically share routing information and learn routes from each other, and this configuration is done using Cisco IOS commands where we enable RIP and specify the networks that need to participate in routing.
The basic syntax to configure RIP is:
router rip
network <network-address>
👉 These networks will:
In RIP, we always use the network address, not the IP address of the interface.
router rip
network 192.168.1.0
network 192.168.2.0
👉 Meaning:
router rip
version 2
network 192.168.1.0
network 192.168.2.0
👉 Version 2 is preferred because it supports subnet mask and is more efficient.
Before configuring RIP, make sure:
Router> enable
Router# configure terminal
Router(config)# router rip
Router(config-router)# version 2
Router(config-router)# network 192.168.1.0
Router(config-router)# network 192.168.2.0
👉 Add all directly connected networks
Router(config-router)# exit
Router(config)# end
Router# show ip route
👉 Check routing table
Router# show running-config
👉 Check RIP configuration
Router> enable
Router# configure terminal
Router(config)# router rip
Router(config-router)# version 2
Router(config-router)# network 192.168.1.0
Router(config-router)# network 192.168.2.0
Router(config-router)# end
Router# show ip route
In this practical, we have implemented dynamic routing using RIP (Routing Information Protocol) in a four-LAN topology, where routers automatically learn and share routing information with each other instead of manually configuring routes, which makes the network more flexible and easier to manage as compared to static routing.

👉 This topology includes:
👉 Routers used:
In RIP, routers automatically exchange routing information with each other, and based on this information, they build their routing tables, and whenever a packet needs to be sent, the router selects the best path based on hop count, and this process keeps updating continuously.
Router>ENABLE
Router#CONFIG T
Router(config)#HOSTNAME GATEWAY1
GATEWAY1(config)#INTERFACE FA0/0
GATEWAY1(config-if)#IP ADDRESS 192.168.100.4 255.255.255.0
GATEWAY1(config-if)#NO SHUTDOWN
GATEWAY1(config-if)#EXIT
GATEWAY1(config)#INTERFACE FA0/1
GATEWAY1(config-if)#IP ADDRESS 192.168.101.1 255.255.255.0
GATEWAY1(config-if)#NO SHUTDOWN
GATEWAY1(config-if)#EXIT
GATEWAY1(config)#ROUTER RIP
GATEWAY1(config-router)#VERSION 2
GATEWAY1(config-router)#NETWORK 192.168.100.0
GATEWAY1(config-router)#NETWORK 192.168.101.0
GATEWAY1(config-router)#NO AUTO-SUMMARY
GATEWAY1(config-router)#EXIT
GATEWAY1(config)#EXIT
Router>ENABLE
Router#CONFIG T
Router(config)#HOSTNAME ROUTER1
ROUTER1(config)#INTERFACE FA0/0
ROUTER1(config-if)#IP ADDRESS 192.168.101.2 255.255.255.0
ROUTER1(config-if)#NO SHUTDOWN
ROUTER1(config-if)#EXIT
ROUTER1(config)#INTERFACE FA0/1
ROUTER1(config-if)#IP ADDRESS 192.168.102.1 255.255.255.0
ROUTER1(config-if)#NO SHUTDOWN
ROUTER1(config-if)#EXIT
ROUTER1(config)#ROUTER RIP
ROUTER1(config-router)#VERSION 2
ROUTER1(config-router)#NETWORK 192.168.101.0
ROUTER1(config-router)#NETWORK 192.168.102.0
ROUTER1(config-router)#NO AUTO-SUMMARY
ROUTER1(config-router)#EXIT
ROUTER1(config)#EXIT
Router>ENABLE
Router#CONFIG T
Router(config)#HOSTNAME GATEWAY2
GATEWAY2(config)#INTERFACE FA0/0
GATEWAY2(config-if)#IP ADDRESS 192.168.103.1 255.255.255.0
GATEWAY2(config-if)#NO SHUTDOWN
GATEWAY2(config-if)#EXIT
GATEWAY2(config)#INTERFACE FA0/1
GATEWAY2(config-if)#IP ADDRESS 192.168.102.2 255.255.255.0
GATEWAY2(config-if)#NO SHUTDOWN
GATEWAY2(config-if)#EXIT
GATEWAY2(config)#ROUTER RIP
GATEWAY2(config-router)#VERSION 2
GATEWAY2(config-router)#NETWORK 192.168.102.0
GATEWAY2(config-router)#NETWORK 192.168.103.0
GATEWAY2(config-router)#NO AUTO-SUMMARY
GATEWAY2(config-router)#EXIT
GATEWAY2(config)#EXIT

👉 From the image, we can see that:
👉 This confirms that RIP is working correctly and all networks are reachable.
👉 Use command : show ip route
👉 You will observe:

👉 In the image:
👉 RIP configuration =
Enable RIP + Add networks → Routers automatically share and learn routes
In this four-LAN topology, dynamic routing is implemented using RIP, where routers automatically exchange routing information and build routing tables, and as a result, all networks can communicate with each other without manually configuring routes, which makes the network efficient and easier to manage.