RIP Exercises
Exercise 1: Enable RIP , advertise a network and check
routing table.
Steps:
[Link] IP addresses in the interfaces connecting R1 and R2
[Link] one loopback interface in each router and configure IP address
[Link] RIP and advertise the network between the routers and the network of loopback
interfaces.
[Link] the routing table in both routers
R1 configuration:
Step 1: Configuring IP address in R1
R1#
R1#configure terminal
R1(config)#interface fastEthernet 0/0
R1(config-if)#ip address [Link] [Link]
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#exit
R1#
Step 2: Creating loopback interface
R1#
R1#configure terminal
R1(config)#interface loopback 1
R1(config-if)#ip address [Link] [Link]
R1(config-if)#exit
R1(config)#exit
R1#
R1#show ip interface brief
Interface IP-Address Status Protocol
FastEthernet0/0 [Link] up up
Loopback1 [Link] up up
R1#
R1#show ip route
C [Link]/24 is directly connected, FastEthernet0/0
C [Link]/8 is directly connected, Loopback1
Step 3: Enable RIP and advertise networks
R1#
R1#configure terminal
R1(config)#router rip
R1(config-router)#network [Link]
R1(config-router)#network [Link]
R1(config-router)#exit
R1(config)#exit
R1#
R2 configuration:
Configuring IP address in R2
R2#
R2#configure terminal
R2(config)#interface fastEthernet 0/0
R2(config-if)#ip address [Link] [Link]
R2(config-if)#no shutdown
R2(config-if)#exit
R2(config)#exit
R2#
Creating loopback interface
R2#
R2#configure terminal
R2(config)#interface loopback 1
R2(config-if)#ip address [Link] [Link]
R2(config-if)#exit
R2(config)#exit
R2#
R2#show ip interface brief
Interface IP-Address Status Protocol
FastEthernet0/0 [Link] up up
Loopback1 [Link] up up
R2#
R2#show ip route
C [Link]/24 is directly connected, FastEthernet0/0
C [Link]/8 is directly connected, Loopback1
Enabling RIP and advertising networks
R2#
R2#configure terminal
R2(config)#router rip
R2(config-router)#network [Link]
R2(config-router)#network [Link]
R2(config-router)#exit
R2(config)#exit
R2#
Now check the routing table in R1 and R2
R1#show ip route
C [Link]/24 is directly connected, FastEthernet0/0
C [Link]/8 is directly connected, Loopback1
R [Link]/8 [120/1] via [Link], [Link], FastEthernet0/0
R2#show ip route
C [Link]/24 is directly connected, FastEthernet0/0
C [Link]/8 is directly connected, Loopback1
R [Link]/8 [120/1] via [Link], [Link], FastEthernet0/0
“show ip route” will show all types of routes (connected, static, rip, ospf etc) , if you are
looking only for particular type try the following method
R2#show ip route rip
R [Link]/8 [120/1] via [Link], [Link], FastEthernet0/0
R2#show ip route connected
C [Link]/8 is directly connected, Loopback1
C [Link]/24 is directly connected, FastEthernet0/0
Understanding routing table entry:
R2#show ip route rip
R [Link]/8 [120/1] via [Link], [Link], FastEthernet0/0
In the above output,
“R” represents that this route is learned from RIP protocol
In [120/1] , 120 represents RIP’s administrative distance and 1 represent the metric to reach
this network [Link]
The timer [Link], shows that RIP received the last update 24 seconds back
FastEthernet0/0 is the exit interface to reach the network [Link]