RIPv2 LAB

 

The configuration of RIPv2 requires three commands.
1) we have to use the ” router rip ” command in the global configuration mode to enable the rip routing process.
2)Next we have to use “version 2” command in RIP configuration mode to enable RIP version 2.
3) Next we have to use the “network <network no> ” to enable RIP on the required interfaces.Here the network no should be the network of the interface on which we want to enable the RIP version 2.IOS compares the ip address of each interface on the router with the ip network in the network command .If the interface ip address is in the same network then RIP is enabled on that interface.

The steps are as shown below.

router(config)# router rip
router(config-router) # version 2
router(config-router)# network <network no>

How to use network command

Lets say the router has four interfaces with ip address as shown below.

S1/0=> 192.168.1.1 255.255.255.0

s1/1 => 10.1.1.1 255.255.255.0

E1/0 => 172.16.1.1 255.255.255.0

E1/1 => 192.168.2.1 255.255.255.0
To enable RIPv2 on s1/0=192.168.1.1 255.255.255.0 use “network 192.168.1.0 ” statement.
To enable RIPv2 on s1/1=10.1.1.1 255.255.255.0 use “network 10.1.1.1 ” statement.
To enable RIPv2 on E1/0=172.16.1.1 255.255.255.0 use “network 172.16.0.0 ” statement.
To enable RIPv2 on E1/1=192.168.2.1 255.255.255.0 use “network 192.168.2.0 ” statement.

EXAMPLE

R1 configuration
router rip
version 2
network 192.168.12.0
R2 Configuration
router rip
version 2
network 192.168.12.0
network 192.168.23.0

R3 Configuration
router rip
version 2
network 192.168.23.0

Verification

R1#show ip route
Codes: 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
i – IS-IS, su – IS-IS summary, 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

C 192.168.12.0/24 is directly connected, Serial1/0
R 192.168.23.0/24 [120/1] via 192.168.12.2, 00:00:05, Serial1/0

R1#show ip protocols
Routing Protocol is “rip”
Outgoing update filter list for all interfaces is not set
Incoming update filter list for all interfaces is not set
Sending updates every 30 seconds, next due in 8 seconds
Invalid after 180 seconds, hold down 180, flushed after 240
Redistributing: rip
Default version control: send version 2, receive version 2
Interface Send Recv Triggered RIP Key-chain
Serial1/0 2 2
Automatic network summarization is in effect
Maximum path: 4
Routing for Networks:
192.168.12.0
Routing Information Sources:
Gateway Distance Last Update
192.168.12.2 120 00:00:14
Distance: (default is 120)

R1#show ip rip database
192.168.12.0/24 auto-summary
192.168.12.0/24 directly connected, Serial1/0
192.168.23.0/24 auto-summary
192.168.23.0/24
[1] via 192.168.12.2, 00:00:00, Serial1/0
R1#

R1#ping 192.168.23.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.23.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 28/38/60 ms

R1#ping 192.168.23.3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.23.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 68/87/116 ms

***************************************R2*********************************


R2#show ip route
Codes: 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
i – IS-IS, su – IS-IS summary, 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

C 192.168.12.0/24 is directly connected, Serial1/0
C 192.168.23.0/24 is directly connected, Serial1/1

R2#show ip protocols
Routing Protocol is “rip”
Outgoing update filter list for all interfaces is not set
Incoming update filter list for all interfaces is not set
Sending updates every 30 seconds, next due in 21 seconds
Invalid after 180 seconds, hold down 180, flushed after 240
Redistributing: rip
Default version control: send version 2, receive version 2
Interface Send Recv Triggered RIP Key-chain
Serial1/0 2 2
Serial1/1 2 2
Automatic network summarization is in effect
Maximum path: 4
Routing for Networks:
192.168.12.0
192.168.23.0
Routing Information Sources:
Gateway Distance Last Update
Distance: (default is 120)

R2#show ip rip database
192.168.12.0/24 auto-summary
192.168.12.0/24 directly connected, Serial1/0
192.168.23.0/24 auto-summary
192.168.23.0/24 directly connected, Serial1/1
R2#

**********************R3******************************************

R3#show ip route
Codes: 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
i – IS-IS, su – IS-IS summary, 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

R 192.168.12.0/24 [120/1] via 192.168.23.2, 00:00:13, Serial1/1
C 192.168.23.0/24 is directly connected, Serial1/1

R3#show ip protocols
Routing Protocol is “rip”
Outgoing update filter list for all interfaces is not set
Incoming update filter list for all interfaces is not set
Sending updates every 30 seconds, next due in 3 seconds
Invalid after 180 seconds, hold down 180, flushed after 240
Redistributing: rip
Default version control: send version 2, receive version 2
Interface Send Recv Triggered RIP Key-chain
Serial1/1 2 2
Automatic network summarization is in effect
Maximum path: 4
Routing for Networks:
192.168.23.0
Routing Information Sources:
Gateway Distance Last Update
192.168.23.2 120 00:00:22
Distance: (default is 120)

R3#show ip rip database
192.168.12.0/24 auto-summary
192.168.12.0/24
[1] via 192.168.23.2, 00:00:02, Serial1/1
192.168.23.0/24 auto-summary
192.168.23.0/24 directly connected, Serial1/1
R3#

R3#ping 192.168.12.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.12.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 64/84/100 ms

R3#ping 192.168.12.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.12.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 32/43/68 ms