S6825能否做到,当1/0/1端口down,1/0/2口跟着down,1/0/1口up起来后,1/0/2也跟着up。
(0)
最佳答案
Monitor Link功能
缺省情况下,以太网接口、VLAN接口及聚合接口处于DOWN状态。如果要使这些接口能够正常工作,请先使用undo shutdown命令使接口状态处于UP。
· 在图1-2所示的组网中,Device C为Smart Link设备,Device A、Device B和Device D为相关设备。Device C上VLAN 1~30的流量通过Smart Link组双上行到Device A。
· 通过配置,在Device C上实现双上行链路的灵活备份,并且当Device A与Device B(或Device D)之间出现链路故障时,Device C能够感知到这个故障并完成其上行链路的切换。
有关Smart Link的详细介绍和配置,请参见“可靠性配置指导”中的“Smart Link”。
图1-2 Monitor Link典型配置组网图
(1) 配置Device C
# 创建VLAN 1~30,将这些VLAN都映射到MSTI 1上,并激活MST域的配置。
<DeviceC> system-view
[DeviceC] vlan 1 to 30
[DeviceC] stp region-configuration
[DeviceC-mst-region] instance 1 vlan 1 to 30
[DeviceC-mst-region] active region-configuration
[DeviceC-mst-region] quit
# 分别关闭端口GigabitEthernet3/0/1和GigabitEthernet3/0/2,在这两个端口上分别关闭生成树协议,并将端口配置为Trunk端口且允许VLAN 1~30通过。
[DeviceC] interface GigabitEthernet 3/0/1
[DeviceC-GigabitEthernet3/0/1] shutdown
[DeviceC-GigabitEthernet3/0/1] undo stp enable
[DeviceC-GigabitEthernet3/0/1] port link-type trunk
[DeviceC-GigabitEthernet3/0/1] port trunk permit vlan 1 to 30
[DeviceC-GigabitEthernet3/0/1] quit
[DeviceC] interface GigabitEthernet 3/0/2
[DeviceC-GigabitEthernet3/0/2] shutdown
[DeviceC-GigabitEthernet3/0/2] undo stp enable
[DeviceC-GigabitEthernet3/0/2] port link-type trunk
[DeviceC-GigabitEthernet3/0/2] port trunk permit vlan 1 to 30
[DeviceC-GigabitEthernet3/0/2] quit
# 创建Smart Link组1,并配置其保护VLAN为MSTI 1所映射的VLAN。
[DeviceC] smart-link group 1
[DeviceC-smlk-group1] protected-vlan reference-instance 1
# 配置Smart Link组1的主端口为GigabitEthernet3/0/1,从端口为GigabitEthernet3/0/2。
[DeviceC-smlk-group1] port GigabitEthernet 3/0/1 primary
[DeviceC-smlk-group1] port GigabitEthernet 3/0/2 secondary
# 在Smart Link组1中使能发送Flush报文的功能。
[DeviceC-smlk-group1] flush enable
[DeviceC-smlk-group1] quit
# 重新开启端口GigabitEthernet3/0/1和GigabitEthernet3/0/2。
[DeviceC] interface GigabitEthernet 3/0/1
[DeviceC-GigabitEthernet3/0/1] undo shutdown
[DeviceC-GigabitEthernet3/0/1] quit
[DeviceC] interface GigabitEthernet 3/0/2
[DeviceC-GigabitEthernet3/0/2] undo shutdown
[DeviceC-GigabitEthernet3/0/2] quit
(2) 配置Device A
# 创建VLAN 1~30。
<DeviceA> system-view
[DeviceA] vlan 1 to 30
# 分别将端口GigabitEthernet3/0/1和GigabitEthernet3/0/2配置为Trunk端口且允许VLAN 1~30通过,并在这些端口上都使能接收Flush报文的功能。
[DeviceA] interface GigabitEthernet 3/0/1
[DeviceA-GigabitEthernet3/0/1] port link-type trunk
[DeviceA-GigabitEthernet3/0/1] port trunk permit vlan 1 to 30
[DeviceA-GigabitEthernet3/0/1] smart-link flush enable
[DeviceA-GigabitEthernet3/0/1] quit
[DeviceA] interface GigabitEthernet 3/0/2
[DeviceA-GigabitEthernet3/0/2] port link-type trunk
[DeviceA-GigabitEthernet3/0/2] port trunk permit vlan 1 to 30
[DeviceA-GigabitEthernet3/0/2] smart-link flush enable
[DeviceA-GigabitEthernet3/0/2] quit
(3) 配置Device B
# 创建VLAN 1~30。
<DeviceB> system-view
[DeviceB] vlan 1 to 30
# 分别将端口GigabitEthernet3/0/1和GigabitEthernet3/0/2配置为Trunk端口且允许VLAN 1~30通过,在端口GigabitEthernet3/0/2上关闭生成树协议,并在这些端口上都使能接收Flush报文的功能。
[DeviceB] interface GigabitEthernet 3/0/1
[DeviceB-GigabitEthernet3/0/1] port link-type trunk
[DeviceB-GigabitEthernet3/0/1] port trunk permit vlan 1 to 30
[DeviceB-GigabitEthernet3/0/1] smart-link flush enable
[DeviceB-GigabitEthernet3/0/1] quit
[DeviceB] interface GigabitEthernet 3/0/2
[DeviceB-GigabitEthernet3/0/2] undo stp enable
[DeviceB-GigabitEthernet3/0/2] port link-type trunk
[DeviceB-GigabitEthernet3/0/2] port trunk permit vlan 1 to 30
[DeviceB-GigabitEthernet3/0/2] smart-link flush enable
[DeviceB-GigabitEthernet3/0/2] quit
# 创建Monitor Link组1,并配置该组的上行接口为GigabitEthernet3/0/1,下行接口为GigabitEthernet3/0/2。
[DeviceB] monitor-link group 1
[DeviceB-mtlk-group1] port GigabitEthernet 3/0/1 uplink
[DeviceB-mtlk-group1] port GigabitEthernet 3/0/2 downlink
[DeviceB-mtlk-group1] quit
(4) 配置Device D
# 创建VLAN 1~30。
<DeviceD> system-view
[DeviceD] vlan 1 to 30
# 分别将端口GigabitEthernet3/0/1和GigabitEthernet3/0/2配置为Trunk端口且允许VLAN 1~30通过,在端口GigabitEthernet3/0/2上关闭生成树协议,并在这些端口上都使能接收Flush报文的功能。
[DeviceD] interface GigabitEthernet 3/0/1
[DeviceD-GigabitEthernet3/0/1] port link-type trunk
[DeviceD-GigabitEthernet3/0/1] port trunk permit vlan 1 to 30
[DeviceD-GigabitEthernet3/0/1] smart-link flush enable
[DeviceD-GigabitEthernet3/0/1] quit
[DeviceD] interface GigabitEthernet 3/0/2
[DeviceD-GigabitEthernet3/0/2] undo stp enable
[DeviceD-GigabitEthernet3/0/2] port link-type trunk
[DeviceD-GigabitEthernet3/0/2] port trunk permit vlan 1 to 30
[DeviceD-GigabitEthernet3/0/2] smart-link flush enable
[DeviceD-GigabitEthernet3/0/2] quit
# 创建Monitor Link组1,并配置该组的上行接口为GigabitEthernet3/0/1,下行接口为GigabitEthernet3/0/2。
[DeviceD] monitor-link group 1
[DeviceD-mtlk-group1] port GigabitEthernet 3/0/1 uplink
[DeviceD-mtlk-group1] port GigabitEthernet 3/0/2 downlink
[DeviceD-mtlk-group1] quit
通过使用display monitor-link group命令可以查看各设备上Monitor Link组的信息。例如当Device A的端口GigabitEthernet3/0/2由于链路故障而down掉时:
# 显示Device B上Monitor Link组1的信息。
[DeviceB] display monitor-link group 1
Monitor link group 1 information:
Group status : UP
Downlink up-delay: 0(s)
Last-up-time : 16:38:26 2012/4/21
Last-down-time : 16:37:20 2012/4/21
Member Role Status
------------------------------------------
GE3/0/1 UPLINK UP
GE3/0/2 DOWNLINK UP
# 显示Device D上Monitor Link组1的信息。
[DeviceD] display monitor-link group 1
Monitor link group 1 information:
Group status : DOWN
Downlink up-delay: 0(s)
Last-up-time : 16:37:20 2012/4/21
Last-down-time : 16:38:26 2012/4/21
Member Role Status
------------------------------------------
GE3/0/1 UPLINK DOWN
GE3/0/2 DOWNLINK DOWN
(0)
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论