這是一個 typical 的輸出 for a Show interfaces command 大家都很熟悉
下面是對它的詳細的說明 有一些東西 我想還是很有用的。大家不一定全知道,實際中用的
你可以知道show 有多麼重要
Router>show int e0
1 Ethernet0 is administratively down, line protocol is down
2 Hardware is Lance, address is 000C.9952.8180 (bia 000C.9952.8180)
3 Internet address 10.1.1.101/24
4 MTU 1500 bytes, BW 10000 Kbit, DLY 1000 usec, rely 255/255, load 1/255
5 Encapsulation ARPA, loopback not set, keepalive set (10 sec)
6 ARP type: ARPA, ARP Timeout 04:00:00
7 Last input 00:00:00, output 00:00:00, output hang never
8 Last clearing of show interface counters never
9 Queueing strategy: fifo
10 Output queue 0/40, 0 drops; input queue 0/75, 0 drops
11 5 minute input rate 1000 bits/sec, 2 packets/sec
12 5 minute output rate 1000 bits/sec, 2 packets/sec
13 237272 packets input, 26758701 bytes, 0 no buffer
14 Received 221125 broadcasts, 0 runts, 0 giants, 0 throttles
15 1 input errors, 0 CRC, 0 frame, 0 overrun, 1 ignored, 0 abort
16 0 input packets with dribble condition detected
17 254166 packets output, 33263412 bytes, 0 underruns
18 2 output errors, 0 collisions, 5 interface resets
19 0 babbles, 0 late collision, 5 deferred
20 2 lost carrier, 0 no carrier
21 0 output buffer failures, 0 output buffers swapped out
Let's look at some of its more important fields.
1 The first line 表示 E0 的狀態可能 有三種
?up (active)
?down (inactive) If the interface misses 連續的3個 keepalives , the system 認爲 it to
be unusable and marks it as "down".
?administratively down (inactive because ad shut it down use the
Shutdown command)
2 The second line MAC address。
3 logical protocol address
4 MTU 是interface的 最大的 transmission unit size。 BW 是 帶寬 單位是 kilobits per
second.這個parameter 只用來算 routing metrics for specific routing protocols
DLY 是 interface 的 delay 是以 微秒爲單位的
rely 是 可靠性 255/255 就是相當於 100% load 是 負載 也是 255/255 是 100%
rely 和 load 都是 5 minute 的 平均值.
5 封裝類型 和 loopback ,keepalive 爲 10 sec
7 Last input 給了時間 since a packet has been 成功的 received on the interface.
last output gives the time elapsed since a packet has been successfully
transmitted on the interface.
output hang shows the time elapse 自從上次自動的 reset. 這裏是 never
8 Last clearing 表示 the time at which the counters used to
measure the cumulative statistics shown in the display were last reset to zero.
如果它 displayed, "***" 就是時間太長無法顯示.
9 first in first out
10 表示 number of packets in the output或是input的 queues for the interface.
斜線後是 the maximum size of the queue. drop掉的數字就是因爲queue full 引起的.
11 和 12行 表示最後 5 分鐘 內的 bit 數和 packet數是平均值 不是精確值 是大概的
13 行是 所有經過這個端口 而沒有錯誤的packet 是input的. 最後的 0 no buffer 是指收到的正確的packet
沒有因爲 buffer 不夠而丟掉.
14 行是 收到的 多播或是廣播包. runts 一般是指引起collisions 的 packet 一般越是小的packet就越引起
collisions ruts 就是指的這種包. 如果這個數 大於 百萬分之一(byte的單位可以自己算) 就不正常.
gaints 是指大於 1518 byte的packet 一般大於1518 的就直接 discard 了
15 行的1 input error info 表示了 這個接口上 所有的 input error這個東西包括了13行的 no buffer
14行的 runts 和 gaints 15 行的CRC frame和 overrun ,ignore . CRC 指的是 packet. frame指的是
frame 的 CRC 錯. 如果 CRC 的數過大 一般是由 衝突過多或是 以太網的設備 故障比如interface.
overrun 指 的是 receiver hardware was unable to pass received data 一般多是對於 硬件的buffer
overrun就是表明 input的rate 大於 interface的 接受的 rate了
ignored 是指 被buffer 忽略的packet 多是 由 noise 或是 廣播風暴 引起的.
16 行 a dribble 指示了 長frame 裏的 bit error .這個frame 被標記錯誤可是 接受了沒有 丟掉.
17 行成功的傳送的 packet 和 byte 數 是平均數 underruns 是指 傳輸過快 而不受 router 控制的次數
18 行 output error 指發生錯誤被藉口丟掉沒有傳的packet .
collisions是指因爲 衝突 需要重傳的frame. 這個數過大是因爲 LAN is over extended.
intreface reset 是 interface 被完全 自動的 reset 的次數 . 這個一般是 因爲 moden 或是 電纜
引起的 不過 如果 interface 是 shutdown 或是 loopback了
對於 show int serial 0
如果 serial 0 is up ,line protocol is up 表示 physical 正常 同時也表示 載波信號已經收到.
其實 line protocol 是 datalink 層的 , 同時 它 up 也是指 keepalives 收到. 如果兩端的 封裝定義的不
一致或是沒有 clock rate 都是 line protocol down . 當然如果是 back to back 的連接serial 0 is down
也可能是 對端端口被 ad 手工的 down了 不一定就是 自己的硬件問題.