RIP |
|
Introduction
The Routing Information Protocol (RIP) is a dynamic routing protocol using the distance-vector routing algorithm. This example shows how to start RIP on a router and enable RIP on specific interfaces. RIP gets enabled on interfaces which have addresses matching with the network specified with network command.
Network Diagram ![]()
Configuration
Router A !
Introduction
RIPv2 can use two types of authentication plain text authentication and message digest 5 authentication. Plain authentication should not be used because unencrypted password is sent in each packet. Instead of plain authentication it is preferable to use more advanced MD5 authentication.
Network Diagram ![]() Configuration
Plain Text Authentication okapi(config)# router rip okapi(config-router)# network 10.0.0.0/24 Okapi(config-router)# network 172.168.10.0/24 okapi(config)# interface Serial 0 okapi(config-if-eth)# ip rip authentication mode text okapi(config-if-eth)# ip rip authentication string secret Router B configuration: okapi(config)# router rip okapi(config-router)# network 10.0.0.0/24 Okapi(config-router)# network 172.168.20.0/24 okapi(config)# interface Serial 0 okapi(config-if-eth)# ip rip authentication mode text okapi(config-if-eth)# ip rip authentication string secret MD5 Authentication Router A configuration: okapi(config)# key chain ripauth okapi(config-keychain)# key 11 okapi(config-keychain-key)# key-string SecretPassword okapi(config)# router rip okapi(config-router)# network 10.0.0.0/24 Okapi(config-router)# network 172.168.10.0/24 okapi(config)# interface Serial 0 okapi(config-if-serial)# ip rip authentication mode md5 okapi(config-if-serial)# ip rip authentication key-chain ripauth Router B configuration: okapi(config)# key chain ripauth okapi(config-keychain)# key 11 okapi(config-keychain-key)# key-string SecretPassword okapi(config)# router rip okapi(config-router)# network 10.0.0.0/24 Okapi(config-router)# network 172.168.20.0/24 okapi(config)# interface Serial 0 okapi(config-if-eth)# ip rip authentication mode md5 okapi(config-if-eth)# ip rip authentication key-chain ripauth Offset List Introduction Sometimes in a network scenario, one want to manipulate RIP metric of outgoing or incoming RIP updates. For eg. In the given network, one can see that the preferred path between the Router A and Router B would be two-hop path via Router C rather than the one-hop 56kbps path that RIP selects because the direct link between the router A and B is a slower serial link. So, in order to give preference to two-hop high speed path, one can simply add an offset to the incoming RIP updates on Router A and Router C via Serial 1.
Network Diagram
![]()
Configuration Router A Okapi(config)# access-list 1 permit 172.168.20.0 0.0.0.0 Okapi(config)# router rip Okapi(config-router)# network 10.0.0.0/24 Okapi(config-router)# network 30.0.0.0/24 Okapi(config-router)# network 172.168.10.0/24 Okapi(config-router)# offset-list 1 in 2 Serial 1 Router B Okapi(config)# access-list 2 permit 172.168.10.0 0.0.0.0 Okapi(config)# router rip Okapi(config-router)# network 20.0.0.0/24 Okapi(config-router)# network 30.0.0.0/24 Okapi(config-router)# network 172.168.20.0/24 Okapi(config-router)# offset-list 2 in 2 Serial 1 Router C Okapi(config)# router rip Okapi(config-router)# network 10.0.0.0/24 Okapi(config-router)# network 20.0.0.0/24 Okapi(config-router)# network 172.168.0.0/16 Redistribute Route Introduction Route Redistribution is a process of advertising the routes learned by other means like by another routing protocol, connected routes, static routes etc. Different routing protocols employ different ways to compute the shortest path, so one has to address several issues while redistribution, one of which is the metrics. During route redistribution, one must define a metric value which is applicable to the receiving protocol. There are two ways of doing this:
Network Diagram ![]()
Configuration Router Arouter rip redistribute ospf 1 metric 2 router ospf redistribute rip metric-type 1 metric 2 |