思科交换机 err-disabled 故障

有一网点接触不好,因为没有接线模块,我只是将接线座重新固定接好,网络可以使用,过了一周,网络再次断线,我就让另一同事更换接线模块,结果同事告诉说更换接线模块也不行,网络还是不通。我觉得很奇怪,我告诉他,网络本来是通的,只是接线模块不好啊。

我将接线模块拆下,直接打上水晶头,测试网线,测试器显示网络是通的,再擦上电脑,仍旧显示断线。我将网线的网络口接入笔记本电脑网卡,笔记本电脑也显示断线,判断网口故障。进入思科交换机,使用show interface 命令查看,显示 line is down (err- disabled)

使用no shutdown 命令,端口故障依旧,更换另外一个端口,故障网络恢复正常。

想想觉得奇怪,网口怎么突然故障呢?思科的交换机不至于这么容易坏啊。

使用命令shutdown,再使用no shutdown

网口恢复正常。为何会出现这样?可能是同事在更换网络模块时将线短路了,造成交换机的软件故障。

百度一下,有更详细的说明,下面是网友的文章:

 

 

解决端口出现err-disabled问题

关于接口处于err-disable的故障排查

故障症状:
线路不通,物理指示灯灭或者显示为橙色(不同平台指示灯状态不同)

show interface 输出显示接口状态:
FastEthernet0/47 is down, line protocol is down (err-disabled)
接口状态是err-disable。

sw1#show interfaces status

Port Name Status Vlan Duplex Speed Type
Fa0/47 err-disabled 1 auto auto 10/100BaseTX

如果出现了接口状态为err-disable,show interfaces status err-disabled命令能查看触发err-disable的原因。
下面示例原因为bpduguard,在连接了交换机的端口配置了spanning-tree bpduguard enable。

sw1#show interfaces status err-disabled

Port Name Status Reason
Fa0/47 err-disabled bpduguard

接口产生err-disable的原因可以由以下的命令来查看,系统缺省的配置是所有列出的原因都能导致接口被置为err-disable。

sw1#show errdisable detect
ErrDisable Reason Detection status
----------------- ----------------
udld Enabled
bpduguard Enabled
security-violatio Enabled
channel-misconfig Enabled
psecure-violation Enabled
dhcp-rate-limit Enabled
unicast-flood Enabled
vmps Enabled
pagp-flap Enabled
dtp-flap Enabled
link-flap Enabled
l3pxguard Enabled
gbic-invalid Enabled
loopback Enabled
dhcp-rate-limit Enabled
unicast-flood Enabled

从列表中,我们可以看出常见的原因有udld,bpduguard,link-flap以及loopback等。
具体由什么原因导致当前接口err-disable可以由show interface status err-disable来查看。

在接口模式下采用shutdown,no shutdown进行手动的激活。

在缺省配置下,一旦接口被置为err-disable,IOS将不会试图恢复接口。
这个可以由show errdisable recovery来查看,timer status下面所有的值都是disable。
下面的示例中,由于手工配置了bpduguard恢复,所以timer status的值变为Enable。

sw1#show errdisable recovery
ErrDisable Reason Timer Status
----------------- --------------
udld Disabled
bpduguard Enabled
security-violatio Disabled
channel-misconfig Disabled
vmps Disabled
pagp-flap Disabled
dtp-flap Disabled
link-flap Disabled
l3pxguard Disabled
psecure-violation Disabled
gbic-invalid Disabled
dhcp-rate-limit Disabled
unicast-flood Disabled
loopback Disabled

Timer interval: 300 seconds

Interfaces that will be enabled at the next timeout:

Interface Errdisable reason Time left(sec)
--------- ----------------- --------------
Fa0/47 bpduguard 217

配置IOS重新激活errdisable的接口,使用以下命令:

sw1(config)#errdisable recovery cause bpduguard

sw1(config)#errdisable recovery cause ?
all Enable timer to recover from all causes
bpduguard Enable timer to recover from BPDU Guard error disable state
channel-misconfig Enable timer to recover from channel misconfig disable state
dhcp-rate-limit Enable timer to recover from dhcp-rate-limit error disable state
dtp-flap Enable timer to recover from dtp-flap error disable state
gbic-invalid Enable timer to recover from invalid GBIC error disable state
l3pxguard Enable timer to recover from l2protocol-tunnel error disable state
link-flap Enable timer to recover from link-flap error disable state
loopback Enable timer to recover from loopback detected disable state
pagp-flap Enable timer to recover from pagp-flap error disable state
psecure-violation Enable timer to recover from psecure violation disable state
security-violation Enable timer to recover from 802.1x violation disable state
udld Enable timer to recover from udld error disable state
unicast-flood Enable timer to recover from unicast flood disable state
vmps Enable timer to recover from vmps shutdown error disable

配置完上述命令后,IOS在一段时间后试图恢复被置为err-disable的接口,这段时间缺省为300秒。
但是,如果引起err-disable的源没有根治,在恢复工作后,接口会再次被置为err-disable。

调整err-disable的超时时间,可以使用以下命令:
sw1(config)#errdisable recovery interval ?
<30-86400> timer-interval(sec)
可以调整在30-86400秒,缺省是300秒。

如果产生err-disable的原因是udld,下面有一条命令非常管用:
sw1#udld reset
No ports are disabled by UDLD.

同时,接口在被置为err-disable的时候,通常有一系列的日志产生,如下:

*Mar 15 15:47:19.984: %SPANTREE-2-BLOCK_BPDUGUARD: Received BPDU on port FastEthernet0/47 with BPDU Guard enabled. Disabling port.
sw1#
*Mar 15 15:47:19.984: %PM-4-ERR_DISABLE: bpduguard error detected on Fa0/47, putting Fa0/47 in err-disable state
sw1#
*Mar 15 15:47:21.996: %LINK-3-UPDOWN: Interface FastEthernet0/47, changed state to down
收集这些日志也非常管用。
所以建议配置一个syslog server,收集log信息。

*************************
sw1#show interfaces status

Port Name Status Vlan Du...

***************

开启errdisable功能,这样可以使用show errdisable来查看引发errdisable的原因是什么,再更加信息内容进行解决。
******************

你要是想不影响使用的话,先用
no errdisable detect cause loopback
执行一下,将已经死掉的端口,no sh 一下
如果没问题,肯定是环路了,你可再找时间,对怀疑有问题的switch用拔插法,一个一个拔掉网线去查,当然,有更有效的方法,你可查看有问题的switch的所有rj45和gi口的状态,哪个有errdisable信息哪个就有问题。

switch#show interfaces status err-disabled

Port     Name           Status     Reason
Fa0/22               err-disabled link-flap
Fa0/37   For office in 100K err-disabled link-flap
Fa0/41   unknow         err-disabled link-flap
Fa0/42   Training Dc066   err-disabled link-flap
Fa0/45   Production line VM err-disabled link-flap
switch#show errdisable detect
ErrDisable Reason   Detection status
-----------------   ----------------
pagp-flap         Enabled
dtp-flap         Enabled
link-flap         Enabled
l3pxguard         Enabled
gbic-invalid       Enabled
loopback         Enabled
switch#show interfaces status err-disabled

Port     Name           Status     Reason
Fa0/22               err-disabled link-flap
Fa0/37   For office in 100K err-disabled link-flap
Fa0/41   unknow         err-disabled link-flap
Fa0/42   Training Dc066   err-disabled link-flap
Fa0/45   Production line VM err-disabled link-flap
switch#sh errdisable flap-values
ErrDisable Reason   Flaps   Time (sec)
-----------------   ------   ----------
pagp-flap         3     30
dtp-flap           3     30
link-flap         5     10 ( link-flap 这就是因为链路质量不好导致的)

关闭errdisable detect
switch#no errdisable detect cause all

时间: 2024-08-05 12:25:14

思科交换机 err-disabled 故障的相关文章

网络设备-思科-交换机(例3750)堆叠终结配置篇

我又回来了,上次俩篇介绍了华为stack.华三的firewall的irf.这次就来介绍下思科的堆叠(stack),虽然实现思路都一致,但配置也有需要注意的地方,尤其是现在做二级运营商的网工们,所有产商全得会,压力确实大. 先说下拓扑环境: 此项目为某全国物流公司网络中标方案某部分,全网品字形状.流量平行结构.全程方案与实施由我进行规划和组织实施. PS:冗余.流量平行 图中网络设备选型: cisco-3750[专用堆叠电缆] firewall-asa5515[出口防火墙,带failover许可证

SONOS 无线音响配置思科交换机

昨天公司买了几个SONOS的无线HIFI设备,豆子需要测试一下效果. 作为一个简单的测试,我的结构很简单, 路由器(防火墙)出来接思科的交换机,然后Boost和我的控制器(电脑或者手机)都在一个VLAN上,然后Boost和Player之间通过自身之间的网格无线网络连接. 路由器 - 交换机 - SONOS Boost/Controller ------ PLAYER 本来以为这是一个很简单的设置,结果发现一个诡异的问题,Boost设备无论如何都无法从思科交换机获取IP地址,但是同样的端口连接在电

TELNET不上思科交换机

今天碰一个问题整半天,记录一下 PING不通思科交换机管理IP,TELNET也连不上思科交换机. 但能从邻接的交换机上TELNET上去. 后来才发现是: cisco的2950是二层交换机 即使你配置了多个VLAN的IP,也只能有一个VLAN来进行管理,其他的都会失效 不知道谁加上去一个VLAN100的,害我瞎忙活半天. interface Vlan100 ip address 10.0.41.6 255.255.255.0 no ip route-cache!interface Vlan201 

思科交换机

思科交换机命令 一.交换机的特点: 1.集成器 不安全 冲突域 宽带共享: 2.交换机 基于目标mac地址转发 学习mac地址: 3.端口独享宽带 没有冲突 广播FF. 二.交换机端口安全-控制计算机数量: config t switch(config)interface fastEthernet 0/4 switch(config)switchport mode access   进入端口 switch(config)switchport port-security              

思科交换机通过radius认证登录

思科交换机 2960,优先radius 认证,然后本地local认证 aaa new-model aaa group server radius radius_group aaa authentication login default local aaa authentication login windows group radius_group local aaa session-id common radius-server host 10.10.10.1 auth-port 1812

思科交换机恢复出厂设置

思科交换机分为两种系统,分别是IOS和CatOS,下面介绍IOS版本的操作, Switch#write erase Erasing the nvram filesystem will remove all files! Continue? [confirm]y[OK] Erase of nvram: complete Swtich# delete flash:vlan.dat ------------老版本需做此操作. Delete filename [vlan.dat]? Delete fla

思科交换机-常用命令及配置

switch> 用户模式 1:进入特权模式enable switch> enable switch# 2:进入全局配置模式configure terminal switch> enable switch#configure terminal switch(conf)# 3:交换机命名hostname name 以cisco001 为例 switch> enable switch#c onfigure terminal switch(conf)#hostname cisco001 c

思科4506E做ehterchannel故障排查

一.故障描述 某客户有两台4506E汇聚交换机,需要做etherchannel互联.现场工程师做好port-channel后,发现双机无法通信,甚至连互联端口的灯都不亮 二.做好备份 首先,在做任何操作之前,先备份两台交换机的配置文件 使用sercureCRT记录会话功能或tftp软件等保存配置 命令:sh run 三.排查 1.检查端口状态 命令1:sh ip int bri GigabitEthernet2/1     unassigned      YES unset  down    

CentOS7.0 安装NTP服务器及思科交换机NTP同步

一.安装环境: CentOS 7  Linux version 3.10.0-229.el7.x86_64 ntp-4.2.6p5-19.el7.centos.x86_64 二.安装及配置 2.1 安装 NTP可以直接通过yum来安装,使用 rpm -qa ntp可以查看是否已安装ntp服务,如有安装可使用yum install ntp 来升级,当然也可以不用升级. 命令: yum install ntp  #安装NTP服务器 2.2 配置 cat /etc/ntp.conf # For mor