77范文网 - 专业文章范例文档资料分享平台

交换机二层增强特性实验记录

来源:网络收集 时间:2020-05-18 下载这篇文档 手机版
说明:文章内容仅供预览,部分内容可能不全,需要完整文档或者需要复制内容,请下载word后使用。下载word有问题请添加微信号:或QQ: 处理(尽可能给您提供完整文档),感谢您的支持与谅解。点击这里给我发消息

一、 UDLD增强特性设计

UDLD(UniDirectional Link Detection)工作原理介绍:

UDLD针对光纤链路故障,工作在物理层模式,如果监测到单向的光纤链路故障出,可 通过erro-disable状态强行将发生故障的端口关闭,避免单向链路故障引起生成树无法 正常运算从而引起通信问题。

设计范围与原则:

?所有交换机的光纤端口都启用UDLD特性。 ?UDLD协商模式为主动方式(aggressive )。 ?Access-SW的接入端口不做设定

测试配置udld网络是否瞬间中断,插拔单芯光纤观察端口状态

(一) UDLD介绍

UDLD (UniDirectional Link Detection 单向链路检测):是一个Cisco私有的二层协议,用于监听利用光纤或双绞线连接的以太链路的物理配置,当出现单向链路(只能向一个方向传输,比如我能把数据发给你,你也能收到,但是你发给我的数据我收不到)时,UDLD可以检测出这一状况,关闭相应接口并发送警告信息。单向链路可能引起很多问题,尤其是生成树,可能会造成回环。注意:UDLD需要链路两端设备都支持才能正常运行。

工作原理维护邻居数据库

检测和回报

交换机会向其邻居发送回复(echo),当邻居在一定时间内没有收到回复,则认为与邻居间的链路出现问题。如果是普通模式,链路有可能会被认为是不确定的状态而不会被关闭(强调一下,普通模式只能检测光纤误解,比如Tx、Rx插反了)。如果是激进模式,则链路会被认为是单向的而被关闭(接口置于err-disable状态)。

UDLD周期型的在每个活动接口上发送hello包(也叫通告advertisement或探针probe)。

当交换机收到hello包后,存储这一信息直到老化时间到期,当老化时间到期前再次收到hello时,则刷新老化时间。 UDLD支持两种工作模式;普通(normal)模式(默认)和激进(aggressive)模式。

普通(normal)模式:这个模式下,UDLD可以检测单向链路,并标记端口为undetermined状态产生系统日志,但并激进(aggressive)模式:这个模式下,UDLD可以检测到由单向链路。并且会尝试重建链路,连续发送8秒的UDLD message,

不影响流量转发。

如果此间没有任何的UDLD echo应答,此端口会被放置于errdisable状态,并不允许任何流量通过。

(二) Cisco下UDLD命令

Cisco全局配置模式下: udld ?

aggressive Enable UDLD protocol in aggressive mode on fiber ports except where locally configured enable Enable UDLD protocol on fiber ports except where locally configured message Set UDLD message parameters

udld message ?

time Set UDLD message time period

udld message time ?

<1-90> Time in seconds between sending of messages in steady state

Cisco接口配置模式下: udld ?

port Enable UDLD protocol on this interface despite global UDLD setting

udld port ?

aggressive Enable UDLD protocol in aggressive mode on this interface despite global UDLD setting disable Disable UDLD protocol on this interface despite global UDLD setting

关于errdisable恢复设置: errdisable recovery cause udld errdisable recovery interval ? <30-86400> timer-interval(sec) 注意:

设备两端的光口,speed 需要设置成非自动协商,否则出现单向链路,端口就会立即物理down,这是光口的特性,所以,如果光端口之间的speed能自动协商,是不需要udld这个功能的。

(三) 使用单台Cisco3750进行环接测试

1. 端口初始配置

interface GigabitEthernet2/0/1 no switchport no ip address speed nonegotiate !

interface GigabitEthernet2/0/2 speed nonegotiate spanning-tree portfast

端口状态:

Interface IP-Address OK? Method Status Protocol GigabitEthernet2/0/1 unassigned YES unset up up GigabitEthernet2/0/2 unassigned YES unset up up

拔一芯,端口状态:

Interface IP-Address OK? Method Status Protocol GigabitEthernet2/0/1 unassigned YES unset up up GigabitEthernet2/0/2 unassigned YES unset down down 一端端口依然up,另一端端口down,满足实验前提。

2. 对端口设置udld,使用默认普通模式

端口配置:

interface GigabitEthernet2/0/1 no switchport no ip address speed nonegotiate udld port !

interface GigabitEthernet2/0/2 speed nonegotiate udld port

spanning-tree portfast

show udld: Interface Gi2/0/1 ---

Port enable administrative configuration setting: Enabled Port enable operational state: Enabled Current bidirectional state: Bidirectional

Current operational state: Advertisement - Single neighbor detected Message interval: 7 Time out interval: 5

Entry 1 ---

Expiration time: 45 Device ID: 1

Current neighbor state: Bidirectional Device name: FDO1515V0BS Port ID: Gi2/0/2

Neighbor echo 1 device: FDO1515V0BS Neighbor echo 1 port: Gi2/0/1

Message interval: 15 Time out interval: 5 CDP Device name: Switch

Interface Gi2/0/2 ---

Port enable administrative configuration setting: Enabled Port enable operational state: Enabled Current bidirectional state: Bidirectional

Current operational state: Advertisement - Single neighbor detected Message interval: 7 Time out interval: 5

Entry 1 ---

Expiration time: 43 Device ID: 1

Current neighbor state: Bidirectional Device name: FDO1515V0BS Port ID: Gi2/0/1

Neighbor echo 1 device: FDO1515V0BS Neighbor echo 1 port: Gi2/0/2

Message interval: 15 Time out interval: 5 CDP Device name: Switch

可见当期的邻居状态为Bidirectional,双向的。

拔一芯,当Expiration time为0时,show udld: Interface Gi2/0/1 ---

Port enable administrative configuration setting: Enabled Port enable operational state: Enabled Current bidirectional state: Unknown Current operational state: Advertisement Message interval: 7 Time out interval: 5

No neighbor cache information stored

说是有log,目前没有产生log,这个需要研究下

端口状态:

GigabitEthernet2/0/1 unassigned YES unset up up GigabitEthernet2/0/2 unassigned YES unset down down

3. 对端口设置udld,使用aggressive模式

端口配置:

interface GigabitEthernet2/0/1 no switchport no ip address speed nonegotiate udld port aggressive !

interface GigabitEthernet2/0/2 speed nonegotiate udld port aggressive spanning-tree portfast

show udld: Interface Gi2/0/1 ---

Port enable administrative configuration setting: Enabled / in aggressive mode Port enable operational state: Enabled / in aggressive mode Current bidirectional state: Bidirectional

Current operational state: Advertisement - Single neighbor detected Message interval: 15 Time out interval: 5

Entry 1 ---

Expiration time: 40 Device ID: 1

Current neighbor state: Bidirectional Device name: FDO1515V0BS Port ID: Gi2/0/2

Neighbor echo 1 device: FDO1515V0BS Neighbor echo 1 port: Gi2/0/1

Message interval: 15 Time out interval: 5 CDP Device name: Switch Interface Gi2/0/2 ---

Port enable administrative configuration setting: Enabled / in aggressive mode Port enable operational state: Enabled / in aggressive mode Current bidirectional state: Bidirectional

Current operational state: Advertisement - Single neighbor detected Message interval: 15

百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说教育文库交换机二层增强特性实验记录在线全文阅读。

交换机二层增强特性实验记录.doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印 下载失败或者文档不完整,请联系客服人员解决!
本文链接:https://www.77cn.com.cn/wenku/jiaoyu/1053203.html(转载请注明文章来源)
Copyright © 2008-2022 免费范文网 版权所有
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ: 邮箱:tiandhx2@hotmail.com
苏ICP备16052595号-18
× 注册会员免费下载(下载后可以自由复制和排版)
注册会员下载
全站内容免费自由复制
注册会员下载
全站内容免费自由复制
注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: