R1(config)#router rip
R1(config-router)#version 2
R1(config-router)#network 192.168.10.254
R1(config-router)#network 10.0.0.1
R1(config-router)#exit
R1(config)#exit
R1#
*Jul 16 12:03:48.283: %SYS-5-CONFIG_I: Configured from console by console
R1#wr
Building configuration...
[OK]
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.10.0/24 is directly connected, FastEthernet0/0
C 10.0.0.0/8 is directly connected, FastEthernet1/0
R1#
----------------------------------------------------------
R2(config)#router rip
R2(config-router)#version 2
R2(config-router)#network 192.168.20.254
R2(config-router)#network 10.0.0.2
R2(config-router)#exit
R2(config)#exit
R2#wr
Building configuration...
[OK]
R2#
*Jul 16 12:07:20.823: %SYS-5-CONFIG_I: Configured from console by console
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
R 192.168.10.0/24 [120/1] via 10.0.0.1, 00:00:03, FastEthernet1/0
C 192.168.20.0/24 is directly connected, FastEthernet0/0
C 10.0.0.0/8 is directly connected, FastEthernet1/0
R2#
--------------------------------------------------
PC1> ping 192.168.20.1
192.168.20.1 icmp_seq=1 timeout
84 bytes from 192.168.20.1 icmp_seq=2 ttl=62 time=60.388 ms
84 bytes from 192.168.20.1 icmp_seq=3 ttl=62 time=60.840 ms
84 bytes from 192.168.20.1 icmp_seq=4 ttl=62 time=60.491 ms
84 bytes from 192.168.20.1 icmp_seq=5 ttl=62 time=60.224 ms
PC1>
-------------------------------
PC3> ping 192.168.10.2
192.168.10.2 icmp_seq=1 timeout
84 bytes from 192.168.10.2 icmp_seq=2 ttl=62 time=60.300 ms
84 bytes from 192.168.10.2 icmp_seq=3 ttl=62 time=45.649 ms
84 bytes from 192.168.10.2 icmp_seq=4 ttl=62 time=60.497 ms
84 bytes from 192.168.10.2 icmp_seq=5 ttl=62 time=60.522 ms
PC3>
----------------------------