第2部分:查看IP路由表和测试连通性 下面对配置后的各路由器进行查看和测试,看是否实现了全网的连通。 在这一部分,我们使用了show ip route、ping、trace等命令。 监测清单11-1记录了所有的操作及其结果。
监测清单11-1查看IP路由表并测试连通性 R3#sh ip route Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, 0 - 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, E - EGP i - IS-IS, 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
172.16.0.0/24 is subnetted, 2 subnets O 172.16.1.0[110/138]via 192.168.1.5,00:00:21,Serial0 C 172.16.3.0 is directly connected, Ethernet0 192.168.1.0/30 is subnetted, 2 subnets O 192.168.1.0[110/128]via 192.168.1.5,00:00:21,Serial0 C 192.168.1.4 is directly connected, Serial0 R3# Term_Server#2 [Resuming connection 2 to r2 ... ] R2#sh ip route Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, 0 - 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, E - EGP i - IS-IS, 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 172.16.0.0/24 is subnetted, 2 subnets O 172.16.1.0 [110/74] via 192.168.1.1,00:00:43,Serial1 O 172.16.3.0 [110/74] via 192.168.1.6,00:00:43,Serial0 192.168.1.0/30 is subnetted, 2 subnets C 192.168.1.0 is directly connected, Serial1 C 192.168.1.4 is directly connected, Serial0 R2#ping 172.16.1.1
Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 172.16.1.1, timeout is 2 seconds: !!!!! SUCcess rate is 100 percent (5/5), round-tdp min/avg/max =16/18/20 ms R2#ping 172.163.1 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 172.16.3.1, timeout is 2 seconds: !!!!! Success rate is 100 percent(5/5),round-trip min/avg/max=28/31/32 ms R2# Term_Server#1 [Resuming connection 1 to r1 ... ]
R1#sh ip route Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, 0 - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type : E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, 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
172.16.0.0/24 is subnetted, 2 subnets C 172.16.1.0 is directly connected, Ethernet0 O 172.16.3.0[110/138] via 192.168.1.2,00:01:19,Serial1 192.168.1.0/30 is subnetted, 2 subnets C 192.168.1.0 is directly connected, Serial1
O 192.168.1.4[110/128] via 192.168.1.2,00:01:19,Serial1 R1# R1#ping Protocol [ip]: Target IP address: 172.16.3.1 Repeat count [5]: Datagram size [100]: Timeout in seconds [2]: Extended commands [n]: y Source address or interface: 172.16.1.1 Type of service [0]: Set DF bit in IP header? [no]: Validate reply data? [no]: Data pattern [OxABCD]: Loose, Strict, Record, Timestamp, Verbose[none]: Sweep range of sizes [n]: Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 172.16.3.1, timeout is 2 seconds: !!!!! Success rate is 100 percent(5/5),round-trip min/avg/max=44/46/48 ms R1#trace 172.16.3.1 Type escape sequence to abort. Tracing the route to 172.16.3.1