R1#
R1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#
R1(config)#router rip
R1(config-router)#version 2
R1(config-router)#network 192.168.100.0
R1(config-router)#network 172.17.1.0
R1(config-router)#^Z
R1#
R2#
R2#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R2(config)#router rip
R2(config-router)#version 2
R2(config-router)#network 192.168.110.0
R2(config-router)#network 172.17.1.0
R2(config-router)#^Z
R2#
R2#copy runn start
Destination filename [startup-config]?
Building configuration...
[OK]
R2#
(4) 测试
从 PC2 ping
PC2>ping 192.168.100.254
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.100.254, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 616/976/1772 ms
PC2>ping 192.168.100.10
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.100.10, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 980/1034/1100 ms
PC2>
从 PC1 ping
PC1#
PC1#ping 192.168.110.253
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.110.253, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 576/648/716 ms
PC1#ping 192.168.110.22
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.110.22, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1016/1128/1228 ms
PC1#