首页 > 其他分享 >Show interface

Show interface

时间:2023-03-08 22:38:53浏览次数:36  
标签:00 Show packets 接口 input interface output 255

show interface f0/1 //直接看某个接口相关信息

pbin_cdswitch#sh int f0/24
FastEthernet0/24 is up, line protocol is up (connected)
//显示接口的物理层和数据链路层状态。
Hardware is Fast Ethernet, address is 0012.01e8.6118 (bia 0012.01e8.6118)
//接口硬件以及硬件地址,BIA指烧录在接口里的MAC地址
//这个数值是无法通过配置命令进行修改的
Description: Connect To 3640
//接口描述信息,在接口配置模式下通过Description命令进行修改
MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec, 
//接口MTU大小,Bandwidth以及Delay参数
reliability 255/255, txload 1/255, rxload 1/255
//可靠性和收发负载
Encapsulation ARPA, loopback not set
//二层封包方式,接口是否回环
Keepalive set (10 sec)
//接口保活报文发送时间间隔
Full-duplex, 100Mb/s, media type is 10/100BaseTX
//接口为全双工,100M,媒介为10/100BaseTX
input flow-control is off, output flow-control is unsupported 
//输入方向流控关闭,输出方向流控不支持
ARP type: ARPA, ARP Timeout 04:00:00
//ARP类型,ARP Aging time为4个小时(缺省的)
Last input 00:00:08, output 00:00:01, output hang never
//上一次有报文输入是8秒以前,输出是一秒以前,输出从来没有暂停
Last clearing of "show interface" counters never
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
//排队策略:FIFO先进先出
Output queue: 0/40 (size/max)
//输出队列
5 minute input rate 0 bits/sec, 0 packets/sec
//五分钟输入速率
5 minute output rate 2000 bits/sec, 2 packets/sec
//五分钟输出速率
37704 packets input, 3575838 bytes, 0 no buffer
//总共37704个报文输入,3575838字节,0个无缓存错误
Received 10177 broadcasts (0 multicast)
//收到10177个广播报文(0个多播)
0 runts, 0 giants, 0 throttles
//0个runts(碎片),0个giants(巨包),0个???
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
//0个输入错误,0个CRC校验错误,0个Frame错误,0个overrun错误,0个ignored错误
0 watchdog, 10177 multicast, 0 pause input
//0个watchdog错误,10177个多播报文,0个Pause input
0 input packets with dribble condition detected
//0个输入报文???
729085 packets output, 70116915 bytes, 0 underruns
//729085个报文输出,输出70116915字节,0个underruns错误
0 output errors, 0 collisions, 1 interface resets
//0个输出错误,0个冲突,1个接口重置
0 babbles, 0 late collision, 0 deferred
//0个Babbles,0个迟冲突,0个deferred
0 lost carrier, 0 no carrier, 0 PAUSE output
//0个失去载波错误,0个没有载波错误,0个PAUSE输出

0 output buffer failures, 0 output buffers swapped out
//0个输出缓存错误,0个输出缓存swapped out


Router#show interfaces e4/0
Ethernet4/0 is up, line protocol is up
Hardware is Lance, address is 000b.bf30.f470 (bia 000b.bf30.f470)
Internet address is 1.1.1.9/24
MTU 1500 bytes, BW 10000 Kbit, RxBW 5000 Kbit, DLY 1000 usec,
reliability 255/255, txload 1/255, rxload 254/255 
Encapsulation ARPA, loopback not set
Keepalive set (10 sec)
ARP type: ARPA, ARP Timeout 04:00:00
Last input 00:00:00, output 00:00:01, output hang never
Last clearing of "show interface" counters 00:03:36
Input queue: 34/75/0/819 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue: 0/40 (size/max)
5 minute input rate 7138000 bits/sec, 14870 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
3109298 packets input, 186557880 bytes, 0 no buffer
Received 217 broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
0 input packets with dribble condition detected
22 packets output, 1320 bytes, 0 underruns
11 output errors, 26 collisions, 0 interface resets
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier
0 output buffer failures, 0 output buffers swapped out

1.接口状态:
Ethernet0 is up, line protocol is up
Ethernet0 is up表示物理接口没有问题,Line protocol is up表示数据链路层没有问题。
如果管理员采用Shutdown命令,则第一个字段将显示信息is administratively down。
如果路由器在活动间隔内收到5000个以上的错误,单词Disabled将出现在此字段中,以显示连路由器自动禁用此端口。
2.接口硬件地址信息:
Hardware is Lance, address is 00e0.1e5c.ab2f (bia 00e0.1e5c.ab2f)
硬件使用Lance的意思是:路由器CPU使用的Local Area Network Controller for Ethernet (LANCE)控制器实现以太网接口数据传输。换句话说就是该接口是10M以太网接口。
硬件的类型还有很多比如DEC21140 Fast Ethernet controller,AMDP2 Ethernet and Fast Ethernet
Am79C971 Fast Ethernet device driver等等,这里就不一一举例了。
Address的意思是该接口的MAC地址。
3.接口网络层地址信息:
Internet address is 192.168.1.1/24 
4.MTU
MTU 1500 bytes
MTU是该接口的最大传输单元,结合下面的Encapsulation ARPA来看。Cisco在Ethernet下的封装默认是EthernetII,最大传输单元是1518 bytes,最小不小于64 bytes。
可以用MTU interface命令来改变默认的MTU最小的MTU是64个字节,而最大的值是65535字节。
5.带宽

BW 10000 Kbit
接口带宽(BW)通常指的是接口的运行速率,用每秒千字节表示。因为以太网运行速率为10Mbps,所以BW值显示为10 000Kb。
6.延迟
DLY 1000 usec
接口的延迟,用微秒表示。
7.可靠性
rely 255/255
接口的可靠性,用255/255表示。可靠性是基于CRC错误率在5分钟内的幂平均值计算。
8.负载
load 1/255
接口的负载,用255/255表示。1/255表示此时的负载几乎为0。注意负载值是动态改变的,负载的平均值是每5分钟计算。
9.接口封装
Encapsulation ARPA
Cisco在Ethernet下的封装默认是EthernetII。
10.环路设置
loopback not set
环路设置用于测试使用。
11.Keepalive消息
keepalive set (10 sec)
Keepalive消息是用于测试该接口链路是否正常连接。我们可以看到在以太网络中的Keepalive消息是每10秒发送一次。
12.ARP协议
ARP type: ARPA, ARP Timeout 04:00:00
在IP环境中,ARP类型是ARPA。可以通过使用arp interface 命令将封装更改为HP PROBE或SNAP。
ARP超时的默认值为4个小时。
13.最后的输入输出
Last input 00:00:11, output 00:00:12, output hang never
表示最后一个被接口成功接收的数据包确切的时间。该显示用于指出该接口出现故障的具体时间。
14. 最后一次清除
Last clearing of "show interface" counters never
表示测量累计统计信息的接口计数器最后一次被重置为0的时间。最后一次清除所显示的实际值是基于32位ms计数器的使用。显示星号表示经过的时间太长无法显示,而显示0:00:00表示计数器在2的31次幂ms到2的32次幂ms之前清除。在许多路由器上最后一次清除值将以星期和月或日和小时表示。
15.队列策略
Queueing strategy: fifo
默认为先入后出(First in first out ,FIFO)。
16.队列
Input queue: 34/75/0/819 (size/max/drops/flushes); Total output drops: 0
Output queue: 0/40 (size/max)
 Size :有多少个数据包在队列中
 Max:队列的最大长度。
 Drops:因为队列已满而造成的丢包数量。
 Flushes:丢包的策略。
这里我们需要讨论一下进出两个方向的队列问题。如果是出方向总是显示有数据包在队列中那是非常正常的,说明在出方向上存在一定的拥塞情况。而如果在进方向总是显示有数据包在队列中,那么表示路由器没有足够的处理能力去处理进入的数据包。如果总是显示进方向的数据包有不断的丢包,那么可能就需要考虑更换更强壮的路由器进行升级了。
17.5分钟内的速率
5 minute input rate 7138000 bits/sec, 14870 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
表示5分钟内的平均速率。
如果接口工作在混乱模式,则读取网络中的所有数据帧。此模式一般用于测试在网络中流动的数据。
如果接口工作在非混乱模式,则仅读取广播和直接投递到接口的数据帧。
18.输入的数据包和字节
3109298 packets input, 186557880 bytes, 0 no buffer
首先表示路由器接收的无错误分组的总数量。其次,它还表示路由器接收的无错误分组的总字节数。
19.广播
Received 217 broadcasts, 0 runts, 0 giants, 0 throttles
表示接口所接收的广播或多播分组的总数量。
Runts:小于64 bytes的错误数据包
Giants:大于1536 bytes的错误数据包
Throttles: 路由器察觉缓冲或处理器过载,将关掉它的接收器。如果总是出现no buffer和Throttles则可能需要加内存。
可以使用clear counters命令来清除接口的计数器。
Router#clear counters s0/0
Clear "show interface" counters on this interface
[confirm][Enter]


标签:00,Show,packets,接口,input,interface,output,255
From: https://blog.51cto.com/u_15672007/6108876

相关文章