Configuring RIP Version 2 on Cisco Routers
Objective
The objective of this lab exercise is to learn and understand how to configure Routing Information Protocol version 2 (RIPv2) on a Cisco IOS router.
Purpose
RIPv2 configuration is a fundamental skill. By default, when RIP is enabled on a Cisco router, both version 1 and version 2 updates are sent and received. Since RIPv1 is considered obsolete due to today’s subnetted networks, it is imperative to know how to enable RIPv2. As a Cisco engineer and for the Cisco CCNA exam, you will be expected to know how to configure and verify RIPv2.
Lab Topology
Use the following topology to complete this lab exercise:
Task 1: Configure Hostnames
Objective: Set hostnames on routers R1 and R2 as illustrated in the topology.
Configuration:
R1#configure terminal R1(config)#hostname R1 R1(config)#end R2#configure terminal R2(config)#hostname R2 R2(config)#end
Task 2: Configure Serial and Loopback Interfaces
Objective:Configure a back-to-back Serial connection between R1 and R2, set clock rate on R2, assign IP addresses on Serial and Loopback interfaces.
Configuration:
R1#configure terminal R1(config)#interface serial0/0/0 R1(config-if)#ip address 192.168.0.1 255.255.255.252 R1(config-if)#no shutdown R1(config-if)#exit R1(config)#interface loopback100 R1(config-if)#ip address 10.10.100.1 255.255.255.224 R1(config-if)#exit R1(config)#interface loopback101 R1(config-if)#ip address 10.10.101.1 255.255.255.192 R1(config-if)#end R2#configure terminal R2(config)#interface serial0/0/ R2(config-if)#clock rate 2000000 R2(config-if)#ip address 192.168.0.2 255.255.255.252 R2(config-if)#no shutdown R2(config-if)#end R1#ping 192.168.0.2 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 192.168.0.2, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 5/8/11 ms R2#ping 192.168.0.1 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 192.168.0.1, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 8/10/15 ms
Task 3: Enable RIPv2
Objective: Enable RIPv2 on R1 and R2, and configure routing for the Loopback and serial0/0/0 interfaces. Verify RIPv2 configuration.
Configuration:
R1#configure terminal R1(config)#router rip R1(config-router)#version 2 R1(config-router)#network 10.0.0.0 R1(config-router)#network 192.168.0.0 R1(config-router)#end R2#configure terminal R2(config)#router rip R2(config-router)#version 2 R2(config-router)#network 192.168.0.0 R2(config-router)#end
Note: When configuring RIP routing, you must use the version 2 keyword under RIP configuration mode. By default, if RIP is enabled and this keyword is not issued, the Cisco IOS router will enable both RIPv1 and RIPv2. RIPv1 will be enabled for inbound and outbound routing updates, and RIPv2 will be enabled only for inbound routing updates.
R1#show ip protocols Routing Protocol is "rip" Sending updates every 30 seconds, next due in 8 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 Serial0/0/0 22 Loopback100 22 Loopback101 22 Automatic network summarization is in effect Maximum path: 4 Routing for Networks: 10.0.0.0 192.168.0.0 Passive Interface(s): Routing Information Sources: Gateway Distance Last Update Distance: (default is 120) R2#ping 10.10.100.1 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 10.10.100.1, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 8/11/15 ms R2#ping 10.10.101.1 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 10.10.101.1, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 9/13/27 ms
Cisco Packet Tracer file:
Load and open the .pkt Lab file in Cisco Packet Tracer from here: Configuring_RIP_Version_2.pkt