Open In App

Configuring RIP Triggered Updates in Cisco

RIP (Routing Information Protocol) is a Distance Vector Routing Protocol (DVRP) which generally uses hop counts to find the best path to the destination.  By RIP, we will be talking about the RIPv2 by default. Since RIPv2 is a dynamic routing protocol:

Types of Updates in RIPv2: 

Topology:

 

Configuring the IP addresses:

On R1:

R1(config)#int f0/0                     
R1(config-if)#ip add 10.1.1.1 255.255.255.0
R1(config-if)#no shut
R1(config-if)#exit
R1(config)#int f1/0                     
R1(config-if)#ip add 20.1.1.1 255.255.255.0
R1(config-if)#no shut
R1(config-if)#exit

 

On R2:

R2(config)#int f0/0                     
R2(config-if)#ip add 10.1.1.2 255.255.255.0
R2(config-if)#no shut
R2(config-if)#exit
R2(config)#int f1/0                     
R2(config-if)#ip add 192.168.1.1 255.255.255.0
R2(config-if)#no shut
R2(config-if)#exit

 

On R3:

R2(config)#int f0/0                     
R2(config-if)#ip add 10.1.1.2 255.255.255.0
R2(config-if)#no shut
R2(config-if)#exit
R2(config)#int f1/0                     
R2(config-if)#ip add 192.168.1.1 255.255.255.0
R2(config-if)#no shut
R2(config-if)#exit

 

On PC1:

PC1> ip 192.168.1.2/24 192.168.1.1

 

On PC2:

PC2> ip 192.168.2.2/24 192.168.2.1

 

Configuring RIPv2:

On R1:

R1(config)#router rip
R1(config-router)#version 2       
R1(config-router)#network 10.1.1.0
R1(config-router)#network 20.1.1.0
R1(config-router)#exit

 

On R2:

R1(config)#router rip
R1(config-router)#version 2       
R1(config-router)#network 192.168.1.0
R1(config-router)#network 10.1.1.0
R1(config-router)#exit

 

On R3:

R1(config)#router rip
R1(config-router)#version 2
R1(config-router)#network 192.168.2.0
R1(config-router)#network 20.1.1.0
R1(config-router)#exit

 

Verifying propagation of Routes and Update Message:

R1#show ip route

 

As you can see, R1 has the entry for the networks which shows R, i.e., learned via RIP and has AD value of 120 with metric as 1 which means the network is just 1 hop away.



R1#debug ip rip events

 

As you can see in the debugged events, Router R1 sends update through both the RIP enabled interfaces with the connected routes and is also receiving updates on both the interfaces that are being sent from R2 and R3 with their connected networks. Also, you can see the time-frame after the router R1 resends the update with the connected routes that is almost 30 seconds (update interval).

Verifying Triggered Updates:

R1#debug ip rip

 

 



Notice the time-frame of shutting down the interface on R2 and the triggered update received on R1 which says the network is now reachable in 16 hops, i.e., it is now inaccessible.

 

And now, when the interface is back in up state R1 again receives a triggered update in which the network is reachable in 1 hop.

Note: RIPv2 allows triggered updates along with periodic updates by default on all port groups. But if you want to allow only triggered updates, then you must have a point-to-point link connectivity between routers and run the interface-level command ip rip triggered to enable triggered extensions, which enable the interface to only send triggered updates based on the following condition:

Article Tags :