电工技术基础_电工基础知识_电工之家-电工学习网

欢迎来到电工学习网!

cisco检查端口状况指令

2017-04-29 19:24分类:电子技术 阅读:

 

cisco查看端口状况指令
在MS-DOS窗口里敲入指令telnet+IP地址,回车,即可长途登录路由器。通常用路由器局域网口地址。
1,用R1#sh ip int b指令查看端口状况
R1#sh ip int b
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 100.100.100.226 YES NVRAM up up
FastEthernet0/1 200.200.200.226 YES NVRAM up up
Serial0/0/0 72.22.81.102 YES NVRAM up up
Serial0/0/1 72.22.81.109 YES NVRAM up up
正常状况下,思科1800路由器四个端口的Status和protocol都是up的。


2,用R1#sh int s0/0/0查看链路状况和通道状况
Serial0/0/0 is up, line protocol is up //接口与协议都已主张(正常)
Serial0/0/0 is up, line protocol is down //接口主张,协议没有匹配成功(端口无物理缺点,但通道不通)
Serial0/0/0 is down, line protocol is down //接口与协议都DOWN掉(协转没有作业)
Serial0/0/0 is down,line protocol is down(disable)//端口呈现物理性缺点,需替换端口。
Serial0/0/0 is administratively down,line protocol is down //接口封闭,可用指令翻开。
Serial0/0/0 is up, line protocol is down(looped) //此通道上有环(不管在协转、DDF架、SDH上做环,在路由器里看到的闪现是相同的)。


Serial0 is up, line protocol is down
Hardware is PowerQUICC Serial
Interface is unnumbered. Using address of FastEthernet0/0 (172.22.128.193)
MTU 1500 bytes, BW 1544 Kbit, DLY 20000 usec,
reliability 255/255, txload 1/255, rxload 1/255 //通道的牢靠性
Encapsulation PPP, LCP Listen, loopback not set
Last input 00:00:27, output 00:00:27, output hang never
Last clearing of "show interface" counters 00:02:52 //前次计数器清零到如今的时刻
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: weighted fair
Output queue: 0/1000/64/0 (size/max total/threshold/drops)
Conversations 0/2/256 (active/max active/max total)
Reserved Conversations 0/0 (allocated/max allocated)
Available Bandwidth 1158 kilobits/sec
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
30 packets input, 420 bytes, 0 no buffer
Received 0 broadcasts, 0 runts, 0 giants, 0 throttles
6552 input errors, 0 CRC, 4 frame, 0 overrun, 0 ignored, 0 abort// 输入过错包数量
60 packets output, 840 bytes, 0 underruns
0 output errors, 0 collisions, 9 interface resets
0 output buffer failures, 0 output buffers swapped out
0 carrier transitions
DCD=up DSR=up DTR=up RTS=up CTS=up
通道的牢靠性,正常值是255/255,假定低于254将会构成丢包。牢靠性越低,通道越差,过错包越多。


DCD 数据载体查看DTE CARrfer derect
DSR 数据设置组织稳妥DATA SET READY
DTR 数据终端组织稳妥DTE IS READY
RTS 央求发送Reguest To Send
CTS 铲除发送Clear To send


3,路由器端口计数器清零
有缺点的通道通常构成路由器接口的输入过错包数量很高,不便利利利利当当利利利当当利当当当利当利利利当利利当当当利当当当利利当当当利利当利于比照查看。这时最好把接口数据包计数器清零,使其从头开端计数。用R1#clear coun指令清零。
R1#clear coun


4,差异以太网端口缺点
用R1#sh int f0/0 来查看以太网口及其链路的状况,如下所示:
R1#sh int f0/0
FastEthernet 0 is up,line protocol is up //联接正常
Ethernet 0 is up,line protocol is down //联接缺点,路由器没有联接到局域网
Ethernet 0 is down,line protocol is down(disable) //接口缺点
Ethernet 0 is administratively down,line protocol is down //接口被封闭,可用指令翻开


5,查看相邻路由器
用R2#sh cdp nei指令查看相邻路由器,输出如下:
R2#sh cdp nei
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
S - Switch, H - Host, I - IGMP, r - Repeater

Device ID Local Intrfce Holdtme Capability Platform Port ID
R1 Ser 0/0/0 133 R S I 1841 Ser 0/0/1
S2_SW1 Fas 0/0 125 S I WS-C2960-2Fas 0/6
S2_SW2 Fas 0/1 140 S I WS-C2960-2Fas 0/22
R3 Ser 0/0/1 156 R S I 1841 Ser 0/0/0
此指令能够查看到相邻的思科路由器和思科沟通机,能够验证设备是不是相通,以及联接联络是不是精确。

6,查询路由器告警和报错信息
路由器发作缺点或状况发作改动的时分,会宣告告警、报错、提示信息。假定是用telnet指令登录路由器的话,不能直接看到这些信息,需求输入R1# ter mon指令后,才调使这些信息显如今MS-DOS窗口上。
R1#ter mon
该指令能够使你及时了解路由器状况改动,便于发现和打扫缺点。

上一篇:gpon技能要素

下一篇:光纤通讯体系有哪几有些构成?有啥效果

相关推荐

电工推荐

    电工技术基础_电工基础知识_电工之家-电工学习网
返回顶部