Back to Lab Listing

Lab Objective:

Learn how to configure the routing protocol RIP.

Lab Purpose:

RIP was created to allow dynamic routing for small networks. It doesn’t understand VLSM because RIP predates this facility. RIPv2 addresses this shortcoming by recognizing VLSM.

Lab Tool:

Packet Tracer

Lab Topology:

Please use the following topology to complete this lab exercise:

rip

Lab Walkthrough:

Task 1:

Connect two routers together using a crossover cable.

Task 2:

Add the IP addresses to the routers connecting the interfaces and then the loopback interfaces.

Router>en

Router#conf t

Router(config)#hostname R0

R0(config)#

Enter configuration commands, one per line.  End with CNTL/Z.

R0(config)#int lo0

R0(config-if)#ip add 10.1.1.1 255.255.240.0

R0(config-if)#int g0/0

R0(config-if)#ip add 192.168.1.1 255.255.255.252

R0(config-if)#no shut

%LINK-5-CHANGED: Interface GigabitEthernet0/0, changed state to up

Then Router1.

Router>en

Router#conf t

Router(config)#hostname R1

R1(config)#

Enter configuration commands, one per line.  End with CNTL/Z.

R1(config)#int lo0

R1(config-if)#ip add 172.16.1.1 255.255.255.0

R1(config-if)#int g0/0

R1(config-if)#ip add 192.168.1.2 255.255.255.252

R1(config-if)#no shut

%LINK-5-CHANGED: Interface GigabitEthernet0/0, changed state to up

Task 3:

Ping from R0 to R1 to check the connection works.

R0#ping 192.168.1.2

 

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 192.168.1.2, timeout is 2 seconds:

.!!!!

Success rate is 80 percent (4/5), round-trip min/avg/max = 0/0/0 ms

Task 4:

Configure RIP on both R0 and R1 to advertise the connected networks.

R0(config)#router rip

R0(config-router)#network 10.0.0.0

R0(config-router)#network 192.168.1.0

 

R1(config)#router rip

R1(config-router)#network 192.168.1.0

R1(config-router)#network 172.16.0.0

Task 5:

Check the routing table with the show ip route command and the routing configurations with the show ip protocols command. Note that the network has been registered with its default subnet mask and that the version of RIP is 1. [120/1] means that the administrative distance, which is the believability of the route, is 120 for RIP and 1 is how many hops away the network is.

R0#show ip route

Codes: L – local, C – connected, S – static, 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, ia – IS-IS inter area

* – candidate default, U – per-user static route, o – ODR

P – periodic downloaded static route

 

Gateway of last resort is not set

 

10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks

C 10.1.0.0/20 is directly connected, Loopback0

L 10.1.1.1/32 is directly connected, Loopback0

R 172.16.0.0/16 [120/1] via 192.168.1.2, 00:00:30, GigabitEthernet0/0

192.168.1.0/24 is variably subnetted, 2 subnets, 2 masks

C 192.168.1.0/30 is directly connected, GigabitEthernet0/0

L 192.168.1.1/32 is directly connected, GigabitEthernet0/0

 

R0#show ip protocols

Routing Protocol is “rip”

Sending updates every 30 seconds, next due in 21 seconds

Invalid after 180 seconds, hold down 180, flushed after 240

Outgoing update filter list for all interfaces is not set

Incoming update filter list for all interfaces is not set

Redistributing: rip

Default version control: send version 1, receive any version

Interface Send Recv Triggered RIP Key-chain

Loopback0 1 2 1

GigabitEthernet0/0 1 2 1

Automatic network summarization is in effect

Maximum path: 4

Routing for Networks:

10.0.0.0

192.168.1.0

Passive Interface(s):

Routing Information Sources:

Gateway Distance Last Update

192.168.1.2 120 00:00:07

Distance: (default is 120)

Task 6:

Ping the remote network IP address.

R0#ping 172.16.1.1

 

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 172.16.1.1, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 0/0/1 ms

Task 7:

Change the version of RIP to 2 and check the routing table again. You may need to clear it first with the clear ip route * command. It will take a few moments for the new routes to be advertised. RIP will still auto-summarize networks, so you need to add the no auto-summary command.

R0#conf t

Enter configuration commands, one per line. End with CNTL/Z.

R0(config)#router rip

R0(config-router)#version 2

R0(config-router)#no auto-summary

R0(config-router)#end

 

R1#conf t

Enter configuration commands, one per line. End with CNTL/Z.

R1(config)#router rip

R1(config-router)#version 2

R1(config-router)#no auto-summary

R1(config-router)#end

R1#clear ip route *

 

R0#show ip protocols

Routing Protocol is “rip”

Sending updates every 30 seconds, next due in 7 seconds

Invalid after 180 seconds, hold down 180, flushed after 240

Outgoing update filter list for all interfaces is not set

Incoming update filter list for all interfaces is not set

Redistributing: rip

Default version control: send version 2, receive 2

Interface Send Recv Triggered RIP Key-chain

Loopback0 2 2

GigabitEthernet0/0 2 2

Automatic network summarization is not in effect

Maximum path: 4

Routing for Networks:

10.0.0.0

192.168.1.0

Passive Interface(s):

Routing Information Sources:

Gateway Distance Last Update

192.168.1.2 120 00:00:04

Distance: (default is 120)

R0#

 

R0#show ip route

Codes: L – local, C – connected, S – static, 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, ia – IS-IS inter area

* – candidate default, U – per-user static route, o – ODR

P – periodic downloaded static route

 

Gateway of last resort is not set

 

10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks

C 10.1.0.0/20 is directly connected, Loopback0

L 10.1.1.1/32 is directly connected, Loopback0

172.16.0.0/24 is subnetted, 1 subnets

R 172.16.1.0/24 [120/1] via 192.168.1.2, 00:00:09, GigabitEthernet0/0

192.168.1.0/24 is variably subnetted, 2 subnets, 2 masks

C 192.168.1.0/30 is directly connected, GigabitEthernet0/0

L 192.168.1.1/32 is directly connected, GigabitEthernet0/0

Notes:

Don’t worry too much about the commands because the Network+ command is vendor-neutral. You need to learn the specific commands only when you take a vendor exam, such as Cisco CCNA.

Newsletter Subscribe

Stay Informed, Stay Inspired: Subscribe for Cutting-Edge IT-Certification Insights

101 Labs Newsletter