監(jiān)測清單8-2配置靜態(tài)路由并測試連通性 R2#conft Enter configuration commands, one per line. End with CNTL/Z. R2(config)#ip route 192.168.LO 255.255.255.0 172.16.1.1 R2(config)# Term_Server#1 [Resuming connection 1 to R1 ...] R1#conft Enter configuration commands, one per line. End with CNTL/Z. R1(config)#ip route 0.0.0.0 0.0.0.0 172.16.1.2 R1(config)#^Z R1#ping R1#ping 192.168.2.1 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 192.168.2.1, timeout is 2 seconds: !!!!! 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 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 172.16.1.2 to network 0.0.0.0 172.16.0.0/24 is subnetted, 1 subnets C 172.16.1.0 is directly connected, Serial0 S* 0.0.0.0/0 [1/0]via 172.16.1.2 (1)在R2上配置目標網(wǎng)段為192.168.1.0/24的靜態(tài)路由。 (2)在R1上配置1條缺省路由。這只是演示上的目的,完全可以配置成為和R2一樣的靜態(tài)路由。 (3)查看R1的路由表,顯示了缺省路由的配置情況。 (4)從R1到192.168.2.1地址的ping測試是成功的,這標志著本實驗的配置任務(wù)已經(jīng)完成。
R1#debug frame-relay ? dlsw Frame Relay dlsw end-to-end Frame-relay end-to-end VC information events Impoftant Frame Relay packet events foresight Frame Relay router ForeSight support hPR Frame Relay APPN HPR ip Frame Relay Internet Protocol llc2 Frame Relay llc2 lmi LMI packet exchanges with service provider packet Frame Relay packets ppp PPP over Frame Relay rsrb Frame Relay rsrb
verbose Frame Relay
R1#debug frame-relay packet Frame Relay packet debugging is on R1#ping 192.168.2.1
Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 192.168.2.1, timeout is 2 seconds: !!!!! SUCcess rate is 100 percent (5/5), round-trip min/avg/max = 68/68/72 ms R1# 00:44:29: Serial0(o): dici 102(0x1861), pkt type 0x800(IP). datagramsize 104 00:44:29: Serial0(i): dici 102(0x1861),pkt type 0x800, datagmmsize 104 00:44:29: Serial0(o):dlci 102(0x1861), pkt type 0x800(IP). datagramsize 104 00:44:29: Serial0(i):dlci 10(0x1861),pkt type 0x800, datagmmsize 104 00:44:29: Serial0(o):dlci 102(0x1861), pkt type 0x800(IP). datagramsize 104 00:44:29: SerialO(i):dlci 102(0x1861),pkt type 0x800, datagmmsize 104 00:44:29: SerialO(o):dlci 102(0x1861), pkt type 0x800(IP). datagramsize 104 00:44:29: Serial0O(i):dlci 102(0x1861),pkt type 0x800, datagmmsize 104 00:44:29: Serial0(o):dlci 102(0x1861),pkt type 0x800(IP). datagramsize 104 00:44:29: Serial0(i):dlci 102(0x1861), pkt type 0x800, datagmmsize 104 R1#conf t Enter configuration commands, one per line. End with CNTL/Z. R1(config)#int sO R1(config-if)#no frame map ip 172.16.L2 102 cisco R1(config-if)#^Z R1#sh frame map
R1#ping 192.168.2.1 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 192.168.2.1, timeout is 2 seconds:
00:45:19: Serial0:Encaps failed-no map entry link 7(IP). 00:45:21: Serial0:Encaps failed-no map entry link 7(IP). 00:45:23: Serial0:Encaps failed-no map entry link 7(IP). 00:45:25: Serial0:Encaps failed-no map entry link 7(IP). 00:45:27: Serial0:Encaps failed-no-map entry link 7(IP). Success rate is 0 percent (0/5) R1#undebug all All possible debugging has been turned off (1)debug frame-relay?命令列出了所有幀中繼的Debug命令,其中最常用的是加陰影的幾項。 (2)debug frame-relay packct命令可以監(jiān)測幀中繼包傳輸?shù)那闆r。在打開監(jiān)測之后,使用ping指令造成幀中繼包的收發(fā)。 (3)可以看到有10行監(jiān)測信息出現(xiàn),仔細觀察發(fā)現(xiàn)是最初2行信息重復出現(xiàn)了5次,這是因為ping指令發(fā)出了5個ICMP包,并收到了5個ICMP應(yīng)答包,"Serial0(o)和"SerialO(i)"說明了發(fā)出(out)和接收(in)的方向。 (4)為測試的目的,把原先定義的幀中繼映射刪除。sh frame map命令的執(zhí)行結(jié)果顯示當前無任何幀中繼映射存在。 (5)再次使用ping指令試圖生成幀中繼的包,監(jiān)測結(jié)果為: Serial0:Encaps failed--no map entry link 7(IP) 表明包的封裝失敗,原因是沒有MAP入口項,即沒有對應(yīng)的幀中繼映射存在。