结合Cisco路由器性能测试一书,最近想根据实际操作经验,对Show Interface命令作一个完整的详细解读。Show Interface命令的输出信息量大,包含了该接口方方面面的统计信息,如下所示:
Router#show interfaces fastethernet 3/0
FastEthernet3/0 is up, line protocol is up
Hardware is TSWITCH, address is 00e0.f7a4.5130 (bia 00e0.f7a4.5130)
MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec, rely 255/255, load 1/255
Encapsulation ARPA, loopback not set, keepalive set (10 sec)
Half-duplex, 100BaseTX
ARP type: ARPA, ARP Timeout 04:00:00
Lastinput 00:05:30, output00:00:00, output hang never
Last clearing of "show interface" counters never
Queueing strategy: fifo
Output queue 0/40, 0 drops; input queue 0/75, 0 drops
5 minuteinput rate 0 bits/sec, 0 packets/sec
5 minuteoutput rate 0 bits/sec, 0 packets/sec
312 packetsinput, 18370 bytes, 0 no buffer
Received 216 broadcasts, 0 runts, 0 giants, 0 throttles
3input errors, 0 CRC, 0 frame, 0 overrun, 3 ignored, 0 abort
0input packets with dribble condition detected
15490 packetsoutput, 1555780 bytes, 0 underruns
2output errors, 0 collisions, 2 interface resets
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier
2output buffer failures, 0 output buffers swapped out
为了便于叙述,逐条命令注释如下:
Router# show interfaces fastethernet 3/0
FastEthernet3/0 is up
表示硬件接口是up
如果主动把接口关闭显示的状态是administratively down
如果路由器在活动间隔内收到5000个以上的错误,单词Disabled将出现在此字段中
Line protocol is up
这说明软件