已阅读5页,还剩5页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
交换机端口假死(err-disable)解决方法出现了这个问题,我们不得不重视起交换机端口“假死”的现象,寻求在交换机不重启的状态下将该端口“拯救”回来的方法。拯救步骤1:查看日志/端口的状态登录进入交换机后,执行show log,会看到如下的提示:21w6d: %ETHCNTR-3-LOOP_BACK_DETECTED: Keepalive packet loop-back detected on FastEthernet0/20.21w6d: %PM-4-ERR_DISABLE: loopback error detected on Fa0/20, putting Fa0/20 in err-disable state以上信息就明确表示由于检测到第20端口出现了环路,所以将该端口置于了err-disable状态。 查看端口的状态Switch# show inter fa0/20 statusPort Name Status Vlan Duplex Speed TypeFa0/20 link to databackup err-disabled 562 auto auto 10/100BaseTX这条信息更加明确的表示了该端口处于err-disabled状态。既然看到了该端口是被置于了错误的状态了,我们就应该有办法将其再恢复成正常的状态。 拯救步骤2:将端口从错误状态中恢复回来进入交换机全局配置模式,执行errdisable recovery cause ?,会看到如下信息:Switch(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 l2ptguard 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 state从列出的选项中,我们可以看出,有非常多的原因会引起端口被置于错误状态,由于我们明确的知道这台交换机上的端口是由于环路问题而被置于错误状态的,所以就可以直接键入命令:Switch(config)#errdisable recovery cause loopback是啊,就这么简单的一条命令,就把困挠我们很长时间的问题解决了,真的就这么神奇。那么如何验证这条命令是生效了呢? 拯救步骤3:显示被置于错误状态端口的恢复情况Switch# show errdisable recoveryErrDisable Reason Timer Status- -udld Disabledbpduguard Disabledsecurity-violatio Disabledchannel-misconfig Disabledvmps Disabledpagp-flap Disableddtp-flap Disabledlink-flap Disabledgbic-invalid Disabledl2ptguard Disabledpsecure-violation Disabledgbic-invalid Disableddhcp-rate-limit Disabledunicast-flood Disabledloopback EnabledTimer interval: 300 secondsInterfaces that will be enabled at the next timeout:Interface Errdisable reason Time left(sec)- - -Fa0/8 loopback 276Fa0/17 loopback 267Fa0/20 loopback 250从以上显示的信息可以看出,这台交换机有三个端口(Fa0/8、Fa0/17、Fa0/20)会分别在276、267、250秒之后恢复为正常的状态,实际情况也是这样,等了几分钟以后,我们找了一台笔记本电脑,分别接到这几个端口上试了一下,端口都可以正常工作了。这下总算在不重交换机的情况下,将几个处于“假死”状态的端口“拯救”了回来。关于接口处于err-disable的故障排查故障症状:线路不通,物理指示灯灭或者显示为橙色(不同平台指示灯状态不同)show interface输出显示接口状态:FastEthernet0/47 is down, line protocol is down (err-disabled)接口状态是err-disable。sw1#show interfaces statusPort Name Status Vlan Duplex Speed TypeFa0/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-disabledPort Name Status ReasonFa0/47 err-disabled bpduguard接口产生err-disable的原因可以由以下的命令来查看,系统缺省的配置是所有列出的原因都能导致接口被置为err-disable。sw1#show errdisable detectErrDisable Reason Detection status- -udld Enabledbpduguard Enabledsecurity-violatio Enabledchannel-misconfig Enabledpsecure-violation Enableddhcp-rate-limit Enabledunicast-flood Enabledvmps Enabledpagp-flap Enableddtp-flap Enabledlink-flap Enabledl2ptguard Enabledgbic-invalid Enabledloopback Enableddhcp-rate-limit Enabledunicast-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 recoveryErrDisable Reason Timer Status- -udld Disabledbpduguard Enabledsecurity-violatio Disabledchannel-misconfig Disabledvmps Disabledpagp-flap Disableddtp-flap Disabledlink-flap Disabledl2ptguard Disabledpsecure-violation Disabledgbic-invalid Disableddhcp-rate-limit Disabledunicast-flood Disabledloopback DisabledTimer interval: 300 secondsInterfaces 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 bpduguardsw1(config)#errdisable recovery cause ?all Enable timer to recover from all causesbpduguard Enable timer to recover from BPDU Guard error disable statechannel-misconfig Enable timer to recover from channel misconfig disable statedhcp-rate-limit Enable timer to recover from dhcp-rate-limit error disable statedtp-flap Enable timer to recover from dtp-flap error disable stategbic-invalid Enable timer to recover from invalid GBIC error disable statel2ptguard Enable timer to recover from l2protocol-tunnel error disable statelink-flap Enable timer to recover from link-flap error disable stateloopback Enable timer to recover from loopback detected disable statepagp-flap Enable timer to recover from pagp-flap error disable statepsecure-violation Enable timer to recover from psecure violation disable statesecurity-violation Enable timer to recover from 802.1x violation disable stateudld Enable timer to recover from udld error disable stateunicast-flood Enable timer to recover from unicast flood disable statevmps Enable timer to recover from vmps shutdown error disable配置完上述命令后,IOS在一段时间后试图恢复被置为err-disable的接口,这段时间缺省为300秒。但是,如果引起err-disable的源没有根治,在恢复工作后,接口会再次被置为err-disable。调整err-disable的超时时间,可以使用以下命令:sw1(config)#errdisable recovery interval ? timer-interval(sec)可以调整在3086400秒,缺省是300秒。如果产生err-disable的原因是udld,下面有一条命令非常管用:sw1#udld resetNo 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 statesw1#*Mar 15 15:47:21.996: %LINK-3-UPDOWN: Interface FastEthernet0/47, changed state to down收集这些日志也非常管用。所以建议配置一个syslog server,收集log信息。故障症状:线路不通,物理指示灯灭或者显示为橙色(不同平台指示灯状态不同)show interface 输出显示接口状态:FastEthernet0/47 is down, line protocol is down (err-disabled)接口状态是err-disable。sw1#show interfaces statusPort Name Status Vlan Duplex Speed TypeFa0/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-disabledbPort Name bStatus ReasonFa0/47 err-disabled bbpduguardb接口产生err-disable的原因可以由以下的命令来查看,系统缺省的配置是所有列出的原因都能导致接口被置为err-disable。sw1#show errdisable detectErrDisable Reason Detection status- -udld Enabledbpduguard Enabledsecurity-violatio Enabledchannel-misconfig Enabledpsecure-violation Enableddhcp-rate-limit Enabledunicast-flood Enabledvmps Enabledpagp-flap Enableddtp-flap Enabledlink-flap Enabledl2ptguard Enabledgbic-invalid Enabledloopback Enableddhcp-rate-limit Enabledunicast-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 recoveryErrDisable Reason Timer Status- -udld Disabledbpduguard Enabledsecurity-violatio Disabledchannel-misconfig Disabledvmps Disabledpagp-flap Disableddtp-flap Disabledlink-flap Disabledl2ptguard Disabledpsecure-violation Disabledgbic-invalid Disableddhcp-rate-limit Disabledunicast-flood Disabledloopback DisabledTimer interval: 300 secondsInterfaces 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 bpduguardsw1(config)#errdisable recovery cause ?all Enable timer to recover from all causesbpduguard Enable timer to recover from BPDU Guard error disable statechannel-misconfig Enable timer to recover from channel misconfig disable statedhcp-rate-limit Enable timer to recover from dhcp-rate-limit error disable statedtp-flap Enable timer to recover from dtp-flap error disable stategbic-invalid Enable timer to recover from invalid GBIC error disable statel2ptguard Enable timer to recover from l2protocol-tunnel error disable statelink-flap Enable timer to recover from link-flap error disable stateloopback Enable timer to recover from loopback detected disable statepagp-flap Enable timer to recover from pagp-flap error disable statepsecure-violation Enable timer to recover from psecure violation disable statesecurity-violation Enable timer to recover from 802.1x violation disable stateudld Enable timer to recover from udld error disable stateunicast-flood Enable timer to recover from unicast flood disable statevmps Enable timer to recover from vmps shutdown error disable配置完上述命令后,IOS在一段时间后试图恢复被置为err-disable的接口,这段时间缺省为300秒。但是,如果引起err-disable的源没有根治,在恢复工作后,接口会再次被置为err-disable。调整err-disable的超时时间,可以使用以下命令:sw1(config)#errdisable recovery interval ? timer-interval(sec)可以调整在3086400秒,缺省是300秒。如果产生err-disable的原因是udld,下面有一条命令非常管用:sw1#udld resetNo 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 statesw1#*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-disabledPort Name Status ReasonFa0/22 err-disabled link-flapFa0/37 For office in 100K err-disabled link-flapFa0/41 unknow err-disabled link-flapFa0/42 Training Dc066 err-disabled link-flapFa0/45 Production line VM err-disabled link-flapswitch#show errdisable detectErrDisable Reason Detection status- -pagp-flap Enabled dtp-flap Enabled link-flap Enabled l2ptguard Enabled gbic-invalid Enabled loopback Enabledswitch#show interfaces status err-disabledPort Name Status ReasonFa0/22 err-disabled link-flapFa0/37 For office in 100K err-disabled link-flapFa0/41 unknow err-disabled link-flapFa0/42 Training Dc066 err-disabled link-flapFa0/45 Production line VM err-disabled link-flapswitch#sh errdisable flap-valuesErrDisable Reason Flaps Time (sec) - - -pagp-flap 3 30 dtp-flap 3 30 link-flap 5 10 ( link-flap 这就是因为链路质量不好导致的) 关闭errdisable detectswitch#no errdisable detect cause all导致交换机接口出现err-disable的几个常见原因: 1. EtherChannel misconfiguration 2. Duplex mismatch style=TEXT-INDENT: 2em3. BPDU port guard 4. UDLD 5. Link-flap error 6. Loopback error 7. Port security violation 第一个当F EC两端配置不匹配的时候就会出现err-disable.假设Switch A把FEC模式配置为on,这时Switch A是不会发送PAgP包和相连的Switch B去协商FEC的,它假设Switch B已经配置好FEC了。但实事上Swtich B并没有配置FEC,当Switch B的这个状态超过1分
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 标准论文格式及字体
- 本科生外语学位论文写作规范
- 供水管理论文范文
- 企业盈利能力分析以北京小米科技有限责任公司为例
- 西南大学本科毕业论文(设计)规范化要求【模板】
- 毕业论文评阅书评语(标准版)
- 历史学毕业论文怎么写(全面分析)
- 工程合同一般是几分(3篇)
- 文献检索期末复习选择题
- 企业财务管理存在的问题及对策的研究意义
- 2025年网格员笔试真题及答案解析
- 2025青岛高新区投资开发集团有限公司人员招聘总及考察环节笔试历年备考题库附带答案详解试卷3套
- 完整版考试人工智能训练师三级题库练习试卷附答案
- 可能性的概念课件
- 2025品质工作总结
- 2025年大学《林学-森林经理学》考试模拟试题及答案解析
- 中国球墨铸铁管配件行业市场规模及未来投资方向研究报告
- 高一历史上学期期末冲刺模拟卷02-统编版高一《历史》上学期期末考点大串讲
- 2025眼科行业发展前景研究报告
- 工厂天然气安全培训课件
- 2025秋南水北调生态环保工程有限公司招聘(15人)笔试考试备考试题及答案解析
评论
0/150
提交评论