The network's configuration is as follows:
Use the command router rip and tell the RIP protocol which network to advertise (network <network #>). Routers send RIP version 1 by default and RIP v.1 is classful, which means all the devices in the network need to use the same subnet mask. The network is entered in using the classful boundary and RIP will find the subnets to advertise since all the networks are using the same subnet mask (/24). Below is the actual configuration for the above sample network, the interface configurations are also shown for completeness.
________________________________________
Router1
Router1> enable
Router1# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router1(config)# interface e0
Router1(config-if)# ip address 172.20.10.1 255.255.255.0
Router1(config-if)# no shutdown
Router1(config-if)# interface s0
Router1(config-if)# ip address 172.20.1.1 255.255.255.0
Router1(config-if)# no shutdown
Router1(config-if)# exit
Router1(config)# router rip
Router1(config-router)# network 172.20.0.0
________________________________________
Router2
Router2> enable
Router2# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router2(config)# interface e0
Router2(config-if)# ip address 172.20.20.1 255.255.255.0
Router2(config-if)# no shutdown
Router2(config-if)# interface s0
Router2(config-if)# ip address 172.20.1.2 255.255.255.0
Router2(config-if)# no shutdown
Router2(config-if)# interface s1
Router2(config-if)# ip address 172.20.2.1 255.255.255.0
Router2(config-if)# no shutdown
Router2(config-if)# exit
Router2(config)# router rip
Router2(config-router)# network 172.20.0.0
________________________________________
Router3
Router3> enable
Router3# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router3(config)# interface e0
Router3(config-if)# ip address 172.20.30.1 255.255.255.0
Router3(config-if)# no shutdown
Router3(config-if)# interface e1
Router3(config-if)# ip address 172.20.35.1 255.255.255.0
Router3(config-if)# no shutdown
Router3(config-if)# interface s0
Router3(config-if)# ip address 172.20.2.2 255.255.255.0
Router3(config-if)# no shutdown
Router3(config-if)# exit
Router3(config)# router rip
Router3(config-router)# network 172.20.0.0
Viewing the routing table
You can use the show ip route command to view the router's routing table.
Router3#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default
U - per-user static route, o - ODR
Gateway of last resort is not set
172.20.0.0/24 is subnetted, 6 subnets
R 172.20.1.0 [120/2] via 172.20.2.1, 00:00:04, Serial0
R 172.20.10.0 [120/2] via 172.20.2.1, 00:00:04, Serial0
R 172.20.20.0 [120/2] via 172.20.2.1, 00:00:04, Serial0
C 172.20.2.0 is directly connected, Serial0
C 172.20.35.0 is directly connected, Ethernet1
C 172.20.30.0 is directly connected, Ethernet0Stopping RIP
Propagation Use the passive-interface command to stop RIP broadcasts from going out an interface. The interface will still receive RIP updates, but it won't send them on the network that the interface is connected to.
Router3(config)# router rip
Router3(config-router)# passive-interface serial 1
If you find this blog informative, please share the post to your friends and others.
Thanks a lot for reading
Neel Kamal
How to configure Routing Protocol RIP
Reviewed by Neel Kamal
on
December 12, 2018
Rating:
No comments:
For More Details Subscribe & Comment..!