1、拓扑图需求
2、配置
R1
Public routing table : RIP Destinations : 4 Routes : 4 RIP routing table status : <Active> Destinations : 4 Routes : 4 Destination/Mask Proto Pre Cost Flags NextHop Interface 2.2.2.2/32 RIP 100 1 D 12.1.1.2 GigabitEthernet 0/0/0 3.3.3.3/32 RIP 100 2 D 12.1.1.2 GigabitEthernet 0/0/0 23.1.1.0/24 RIP 100 1 D 12.1.1.2 GigabitEthernet 0/0/0 192.168.2.0/24 RIP 100 2 D 12.1.1.2 GigabitEthernet 0/0/0 RIP routing table status : <Inactive> Destinations : 0 Routes : 0
R2
Public routing table : RIP Destinations : 4 Routes : 4 RIP routing table status : <Active> Destinations : 4 Routes : 4 Destination/Mask Proto Pre Cost Flags NextHop Interface 1.1.1.1/32 RIP 100 1 D 12.1.1.1 GigabitEthernet 0/0/0 3.3.3.3/32 RIP 100 1 D 23.1.1.2 GigabitEthernet 0/0/1 192.168.1.0/24 RIP 100 1 D 12.1.1.1 GigabitEthernet 0/0/0 192.168.2.0/24 RIP 100 1 D 23.1.1.2 GigabitEthernet 0/0/1 RIP routing table status : <Inactive> Destinations : 0 Routes : 0
R3
Public routing table : RIP Destinations : 4 Routes : 4 RIP routing table status : <Active> Destinations : 4 Routes : 4 Destination/Mask Proto Pre Cost Flags NextHop Interface 1.1.1.1/32 RIP 100 2 D 23.1.1.1 GigabitEthernet 0/0/0 2.2.2.2/32 RIP 100 1 D 23.1.1.1 GigabitEthernet 0/0/0 12.1.1.0/24 RIP 100 1 D 23.1.1.1 GigabitEthernet 0/0/0 192.168.1.0/24 RIP 100 2 D 23.1.1.1 GigabitEthernet 0/0/0 RIP routing table status : <Inactive> Destinations : 0 Routes : 0
3、测试全网可达
PC>ping 192.168.2.2 Ping 192.168.2.2: 32 data bytes, Press Ctrl_C to break From 192.168.2.2: bytes=32 seq=1 ttl=125 time=78 ms From 192.168.2.2: bytes=32 seq=2 ttl=125 time=63 ms From 192.168.2.2: bytes=32 seq=3 ttl=125 time=78 ms From 192.168.2.2: bytes=32 seq=4 ttl=125 time=93 ms From 192.168.2.2: bytes=32 seq=5 ttl=125 time=63 ms --- 192.168.2.2 ping statistics --- 5 packet(s) transmitted 5 packet(s) received 0.00% packet loss round-trip min/avg/max = 63/75/93 ms PC>ping 1.1.1.1 Ping 1.1.1.1: 32 data bytes, Press Ctrl_C to break From 1.1.1.1: bytes=32 seq=1 ttl=255 time=47 ms From 1.1.1.1: bytes=32 seq=2 ttl=255 time=31 ms From 1.1.1.1: bytes=32 seq=3 ttl=255 time=47 ms --- 1.1.1.1 ping statistics --- 3 packet(s) transmitted 3 packet(s) received 0.00% packet loss round-trip min/avg/max = 31/41/47 ms PC>ping 2.2.2.2 Ping 2.2.2.2: 32 data bytes, Press Ctrl_C to break From 2.2.2.2: bytes=32 seq=1 ttl=254 time=32 ms --- 2.2.2.2 ping statistics --- 1 packet(s) transmitted 1 packet(s) received 0.00% packet loss round-trip min/avg/max = 32/32/32 ms PC>ping 3.3.3.3 Ping 3.3.3.3: 32 data bytes, Press Ctrl_C to break From 3.3.3.3: bytes=32 seq=1 ttl=253 time=63 ms From 3.3.3.3: bytes=32 seq=2 ttl=253 time=31 ms --- 3.3.3.3 ping statistics --- 2 packet(s) transmitted 2 packet(s) received 0.00% packet loss round-trip min/avg/max = 31/47/63 ms