本實(shí)驗(yàn)主要演示show ip eigrp topoTogy、show ip eigrp traffic、debug ip eigrp和debug eigrp packet等命令的用法和輸出結(jié)果。 監(jiān)測(cè)清單6-2記錄了實(shí)驗(yàn)的全過(guò)程,隨后有對(duì)相應(yīng)內(nèi)容的講解。
監(jiān)測(cè)清單6-2 使用EIGRP常用的監(jiān)測(cè)和診斷命令
R1# R1#sh ip eigrp ? interfaces IP-EIGRP mterfaces neighbors IP-BIGRP neighbors topology IP-EIGRP Topology Table traffic IP-EIGRP Traffic Statistics R1#sh ip eigrp topology IP-EIGRP Topology Table for AS(100)/ID(10.1.1.1) Codes: P - Passive, A - Active, U - Update, Q - Query, R - Reply, r - reply Status, s - sia Status P 10..1.1.O/24, 1 sUCcessors, FD is 128256 via Connected, Loopback0 P 201.1.12.0/30, 1 successors, FD is 1792000 via Coimected, Serial0 P 201,1.13.0/30, 1 successors.FD is 1792000 via Connected, Serial 1 P 200.1.1.0/24, 2 successors, 3FT>is 1817600 via 201,1.13,2 (181760028160), Serial1 via 201.1.12.2 (1817600/281101, Serial0 R1#sh ip eigrp traffic IP-EIGRP Traffic Statistics for PRocess 100 Hellos sent/received:2469/2341 Updates :seBT/received:8/8 Queries seBt/received: 0/0 Replies seat/received: 0/0 Acks sent/received: 4/4 Input queue high water mark 2, 0 drops SIA-Queries sent/received: 0/0 SIA-Replies sent/received: 0/0 R1#conft Enter configuration commands, one per line. End with CNTL/Z. R1(config)#logg console R1(config)#^Z 01:44:12: %SYS-5-CONFIG_1: Configured from console by console R1#debug ip eigrp IP-EIGRP Route Events debugging is on R1# R1#conft Enter configuration commands, one per line. End with CNTL/Z. R1(config)#int si R1(config-if)#shut R1(config-if)#^Z R1# 01:47:45:IP-EIGRP: 201.1.13.0/30 -do advertise out Serial0 01:47:45: IP"EIGRP: Int 201,1,13.0/30 metric 4294967295-04294967295 01:47:45: IP-EIGRP: Processiag incoming REPLY packet 01:47:45: IP-EIGRP: Int 201.1,13.0/30 M 2329600-1280000 1049600 SM 1817600 - 1280000537600 01:47:45: IP-EIGRP: 201.1.13.0/30 routing table not updated 01:47:45: IP-EIGRP: Int 201.1.13.0/30 metric 2329600- 1280000 1049600 R1# 01:47:47: %LINK-5-CHANGED: Interface Seriall, changed state to administratively down R1# R1#imdebug all All possible debugging has been turned off R1#debug eigrp packet EIGRP Packets debugging is on (UPSTATE, REQUEST, QUBRY, REPLY, HELLO, IPXSAP, PROBE, ACK, STUB, SIAQUERY,SIAREPLY) R1# 01:48:17: EIGRP: Sending HELLO onLoopback0 01:48:17: AS 100, Flags 0x0, Seq 0/0 idbQ 0/0 iidbQun/rely 0/0 01:48:17: EIGRP: Received HELLO on LoopbackO nbr 10.1.1.1 01:48:17: AS 100, Flags 0x0, Seq O/OidbQ 0/0 01:48:17: EIGRP: Packet from ourselves ignored R1# 01:48:19: Sending HELLO on Serial0 01:48:19: AS 100, Flags 0x0, Seq 0/0 idbQ 0/0 iidbQ un/rely 0/0 R1# 01:48:20: EIGRP: Received HELLO on nbr 201.1.12.2 01:48:20: AS 100, Flags 0x0, Seq 0/0 idbQ 0/0 iidbQ un/rely 0/0 peerQ un/rely 0/0 R1#undebug all R1# R1#sh ip route D 200.L 1.0/24[90/1817600} via 201.1.12.2, 01:02:29, Serial0 (1)show ip eigrp命令下有4個(gè)子命令,即interfaces、neighbors、topology和traffic,分別查看EIGRP協(xié)議的接口、鄰居。拓?fù)浜土髁康刃畔ⅰ1緦?shí)驗(yàn)中重點(diǎn)考察topology和traffic。兩個(gè)子命令。 (2)show ip eigrp topology命令列出從EIGRP協(xié)議所獲取的所有路由信息。 實(shí)驗(yàn)中給出了在R1路由器上使用此命令的結(jié)果,其中前3項(xiàng)(10.1.1.0/24、201.1.12.0/30和201.1.13.0/30)是直連接口上的網(wǎng)段。最后1項(xiàng)(200.1.1.0/24)有2個(gè)路由信息源,即R2和R3的IP地址。 show ip eigrp topology命令給出所有EIGRP路由信息,但并不是說(shuō)所有這些信息都進(jìn)入路由表而被路由器所使用,只有最佳的路由才被使用。最佳的路由就是度量值最小的路由。 (3)show ip eigrp traffic命令顯示了EIGRP協(xié)議所產(chǎn)生和使用的各種信息包的發(fā)送和接收情況,其中主要有Hello、Update(更新)、Query(查詢)。Reply(應(yīng)答)、ACK(確認(rèn))幾種包的類(lèi)型。缺省情況下Hello包每5s鐘發(fā)送1次,所以它的收發(fā)數(shù)最多;在一個(gè)穩(wěn)定運(yùn)行的網(wǎng)絡(luò)中,其他各種包都較少。 (4)debu ip eigrp監(jiān)測(cè)IP EIGRP路由事件信息。為了查看路由變化的情況,我們手工把R1路由器的S1接口關(guān)閉,查看輸出的Debug信息。監(jiān)測(cè)表明有關(guān)201.1.13.0/30網(wǎng)段的路由信息己經(jīng)出現(xiàn)變化。 (5)debug eigrp packet命令主要監(jiān)測(cè)EIGRP使用的各種信息包的收發(fā)情況,實(shí)驗(yàn)記錄中主要是Hello包的信息。 (6)最后我們看到,關(guān)閉了S1接口后,R1路由器的路由表中只有通過(guò)201.1.12.2到達(dá)200.1.1.0/24網(wǎng)段這一條路由。