您的位置:首页 > 其它

交换机端口err-disable、配置速率和双工模式

2017-09-19 16:58 141 查看

实例:

     和客户IDC机房拉了一条MSTP线路,接入到Cisco 3750x后端口灯不亮,更换了端口也是不亮,查看端口信息发现因为客户端有环路导致我们接口出现err-disable错误。

故障现象:

        线路不通,物理指示灯不亮,有的会显示为橙色(不同平台指示灯状态不同)

解决思路:

         取消环路,将端口重启

排错过程:

1、查看接口状态

GigabitEthernet1/0/8 is down, line protocol is down (err-disabled) 

[p]C3750X-5F-I02-2-252#show interfaces status  Port      Name               Status       Vlan       Duplex  Speed Type Gi1/0/1   "AA Network"  connected    routed     a-half  a-100 10/100/1000BaseTX Gi1/0/2   "BB Network   connected    routed     a-full  a-100 10/100/1000BaseTX Gi1/0/3   "CC Network"  connected    routed     a-half  a-100 10/100/1000BaseTX Gi1/0/4   "DD Network"  connected    routed     a-half  a-100 10/100/1000BaseTX Gi1/0/5   "EE Network"  connected    routed     a-half  a-100 10/100/1000BaseTX Gi1/0/6   "FF Network"  connected    routed     a-half  a-100 10/100/1000BaseTX Gi1/0/7   "GG Network   connected    routed     a-half  a-100 10/100/1000BaseTX Gi1/0/8   "HH Network"  connected    routed     a-full  a-100 10/100/1000BaseTX Gi1/0/9                      err-disabled 1            auto   auto 10/100/1000BaseTX Gi1/0/10                     err-disabled 1            auto   auto 10/100/1000BaseTX Gi1/0/11                     notconnect   515          auto   auto 10/100/1000BaseTX Gi1/0/12                     connected    515        a-full a-1000 10/100/1000BaseTX Gi1/0/13                     connected    514        a-full  a-100 10/100/1000BaseTX Gi1/0/14                     connected    514        a-full  a-100 10/100/1000BaseTX Gi1/0/15                     notconnect   513          auto   auto 10/100/1000BaseTX Gi1/0/16                     notconnect   513          auto   auto 10/100/1000BaseTX Gi1/0/17                     connected    502        a-full a-1000 10/100/1000BaseTX Gi1/0/18                     connected    502        a-full a-1000 10/100/1000BaseTX Gi1/0/19                     connected    502        a-full a-1000 10/100/1000BaseTX Gi1/0/20                     err-disabled 502          auto   auto 10/100/1000BaseTX Gi1/0/21                     connected    515        a-full a-1000 10/100/1000BaseTX Gi1/0/22                     connected    515        a-full a-1000 10/100/1000BaseTX Gi1/0/23                     notconnect   1            auto   auto 10/100/1000BaseTX Gi1/0/24                     connected    trunk      a-full a-1000 10/100/1000BaseTX Fa0                          notconnect   routed       auto   auto 10/100BaseTX C3750X-5F-I02-2-252#[p]
配置接口速率和双工模式

接口双工模式分为全双工和半双工,指的是数据的传输方式:

1.半双工(Half Duplex)是指接口任意时刻只能接收数据或者发送数据,并存在最大传输距离的限制。

2.全双工(Full Duplex)是指在发送数据的同时也能够接收数据,两者同步进行,最大吞吐量可达到双倍速率,且消除了半双工的物理距离限制。目前的网卡一般都支持全双工。 


配置接口双工模式

接口双工模式可以是自协商模式(auto)、半双工模式(half)、全双工模式(full)

自协商的内容包括两端接口的双工模式和接口速率。一旦协商通过,链路两端的设备就锁定在同样的双工模式和接 19f07 口速率。自协商功能只有在链路两端设备均支持才可以生效。如果对端设备不支持自协商功能,或者对端设备自协商机制和本端设备不一致,则接口可能会处于Down状态

如果数据流量较大,则链路两端的自协商结果只能为全双工模式,不能为半双工模式,否则会出现丢包现象。如果数据流量较小,链路两端的自协商结果为半双工模式即可以满足数据传输需求。 

链路两端的双工模式必须保持一致。电接口对接时有可能因为两端接口自协商模式不一致等原因,造成接口被协商成半双工模式,此时可能会出现报文交互异常现象C3750X-5F-I02-2-252#SHOw INTERfaces GigabitEthernet1/0/8 GigabitEthernet1/0/8 is down, line protocol is down (err-disabled)    Hardware is Gigabit Ethernet, address is 00af.1fe0.63d0 (bia 00af.1fe0.63d0)   Description: "HTZQ Network"   Internet address is 165.16.241.174/30   MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec,       reliability 255/255, txload 1/255, rxload 1/255   Encapsulation ARPA, loopback not set   Keepalive set (10 sec)   Auto-duplex, Auto-speed, media type is 10/100/1000BaseTX  # auto | full | half设置端口为-自动/全双工/半双工   input flow-control is off, output flow-control is unsupported    ARP type: ARPA, ARP Timeout 04:00:00   Last input 01:41:48, output 01:41:48, output hang never   Last clearing of "show interface" counters never   Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0   Queueing strategy: fifo C3750X-5F-I02-2-252(config)#INTErface GigabitEthernet1/0/8 C3750X-5F-I02-2-252(config-if)# DUplex full  C3750X-5F-I02-2-252(config-if)# Speed 100 C3750X-5F-I02-2-252(config-if)#speed ?   10    Force 10 Mbps operation   100   Force 100 Mbps operation   1000  Force 1000 Mbps operation   auto  Enable AUTO speed configuration C3750X-5F-I02-2-252(config-if)#

阅读更多
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: