最佳答案
您好,请知:
以下是配置案例,请参考:
· 在图1-2所示的组网中,Device C和Device D为Smart Link设备,Device A、Device B和Device E为相关设备。Device C和Device D上VLAN 1~30的流量分别双上行到Device A。
· 通过配置,在Device C和Device D上分别实现双上行链路的灵活备份。
图1-2 单Smart 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
# 分别关闭端口Ten-GigabitEthernet1/0/1和Ten-GigabitEthernet1/0/2,在这两个端口上分别关闭生成树协议,并将端口配置为Trunk端口且允许VLAN 1~30通过。
[DeviceC] interface ten-gigabitethernet 1/0/1
[DeviceC-Ten-GigabitEthernet1/0/1] shutdown
[DeviceC-Ten-GigabitEthernet1/0/1] undo stp enable
[DeviceC-Ten-GigabitEthernet1/0/1] port link-type trunk
[DeviceC-Ten-GigabitEthernet1/0/1] port trunk permit vlan 1 to 30
[DeviceC-Ten-GigabitEthernet1/0/1] quit
[DeviceC] interface ten-gigabitethernet 1/0/2
[DeviceC-Ten-GigabitEthernet1/0/2] shutdown
[DeviceC-Ten-GigabitEthernet1/0/2] undo stp enable
[DeviceC-Ten-GigabitEthernet1/0/2] port link-type trunk
[DeviceC-Ten-GigabitEthernet1/0/2] port trunk permit vlan 1 to 30
[DeviceC-Ten-GigabitEthernet1/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的主端口为Ten-GigabitEthernet1/0/1,从端口为Ten-GigabitEthernet1/0/2。
[DeviceC-smlk-group1] port ten-gigabitethernet 1/0/1 primary
[DeviceC-smlk-group1] port ten-gigabitethernet 1/0/2 secondary
# 在Smart Link组1中开启发送Flush报文的功能,并指定发送Flush报文的控制VLAN为VLAN 10。
[DeviceC-smlk-group1] flush enable control-vlan 10
[DeviceC-smlk-group1] quit
# 重新开启端口Ten-GigabitEthernet1/0/1和Ten-GigabitEthernet1/0/2。
[DeviceC] interface ten-gigabitethernet 1/0/1
[DeviceC-Ten-GigabitEthernet1/0/1] undo shutdown
[DeviceC-Ten-GigabitEthernet1/0/1] quit
[DeviceC] interface ten-gigabitethernet 1/0/2
[DeviceC-Ten-GigabitEthernet1/0/2] undo shutdown
[DeviceC-Ten-GigabitEthernet1/0/2] quit
(2) 配置Device D
# 创建VLAN 1~30,将这些VLAN都映射到MSTI 1上,并激活MST域的配置。
<DeviceD> system-view
[DeviceD] vlan 1 to 30
[DeviceD] stp region-configuration
[DeviceD-mst-region] instance 1 vlan 1 to 30
[DeviceD-mst-region] active region-configuration
[DeviceD-mst-region] quit
# 分别关闭端口Ten-GigabitEthernet1/0/1和Ten-GigabitEthernet1/0/2,在这两个端口上分别关闭生成树协议,并将端口配置为Trunk端口且允许VLAN 1~30通过。
[DeviceD] interface ten-gigabitethernet 1/0/1
[DeviceD-Ten-GigabitEthernet1/0/1] shutdown
[DeviceD-Ten-GigabitEthernet1/0/1] undo stp enable
[DeviceD-Ten-GigabitEthernet1/0/1] port link-type trunk
[DeviceD-Ten-GigabitEthernet1/0/1] port trunk permit vlan 1 to 30
[DeviceD-Ten-GigabitEthernet1/0/1] quit
[DeviceD] interface ten-gigabitethernet 1/0/2
[DeviceD-Ten-GigabitEthernet1/0/2] shutdown
[DeviceD-Ten-GigabitEthernet1/0/2] undo stp enable
[DeviceD-Ten-GigabitEthernet1/0/2] port link-type trunk
[DeviceD-Ten-GigabitEthernet1/0/2] port trunk permit vlan 1 to 30
[DeviceD-Ten-GigabitEthernet1/0/2] quit
# 创建Smart Link组1,并配置其保护VLAN为MSTI 1所映射的VLAN。
[DeviceD] smart-link group 1
[DeviceD-smlk-group1] protected-vlan reference-instance 1
# 配置Smart Link组1的主端口为Ten-GigabitEthernet1/0/1,从端口为Ten-GigabitEthernet1/0/2。
[DeviceD-smlk-group1] port ten-gigabitethernet 1/0/1 primary
[DeviceD-smlk-group1] port ten-gigabitethernet 1/0/2 secondary
# 在Smart Link组1中开启发送Flush报文的功能,并指定发送Flush报文的控制VLAN为VLAN 20。
[DeviceD-smlk-group1] flush enable control-vlan 20
[DeviceD-smlk-group1] quit
# 重新开启端口Ten-GigabitEthernet1/0/1和Ten-GigabitEthernet1/0/2。
[DeviceD] interface ten-gigabitethernet 1/0/1
[DeviceD-Ten-GigabitEthernet1/0/1] undo shutdown
[DeviceD-Ten-GigabitEthernet1/0/1] quit
[DeviceD] interface ten-gigabitethernet 1/0/2
[DeviceD-Ten-GigabitEthernet1/0/2] undo shutdown
[DeviceD-Ten-GigabitEthernet1/0/2] quit
(3) 配置Device B
# 创建VLAN 1~30。
<DeviceB> system-view
[DeviceB] vlan 1 to 30
# 将端口Ten-GigabitEthernet1/0/1配置为Trunk端口且允许VLAN 1~30通过,在该端口上开启接收Flush报文的功能,并指定接收Flush报文的控制VLAN为VLAN 10和20。
[DeviceB] interface ten-gigabitethernet 1/0/1
[DeviceB-Ten-GigabitEthernet1/0/1] port link-type trunk
[DeviceB-Ten-GigabitEthernet1/0/1] port trunk permit vlan 1 to 30
[DeviceB-Ten-GigabitEthernet1/0/1] smart-link flush enable control-vlan 10 20
[DeviceB-Ten-GigabitEthernet1/0/1] quit
# 将端口Ten-GigabitEthernet1/0/2配置为Trunk端口且允许VLAN 1~30通过,在该端口上关闭生成树协议并开启接收Flush报文的功能,并指定接收Flush报文的控制VLAN为VLAN 20。
[DeviceB] interface ten-gigabitethernet 1/0/2
[DeviceB-Ten-GigabitEthernet1/0/2] port link-type trunk
[DeviceB-Ten-GigabitEthernet1/0/2] port trunk permit vlan 1 to 30
[DeviceB-Ten-GigabitEthernet1/0/2] undo stp enable
[DeviceB-Ten-GigabitEthernet1/0/2] smart-link flush enable control-vlan 20
[DeviceB-Ten-GigabitEthernet1/0/2] quit
# 将端口Ten-GigabitEthernet1/0/3配置为Trunk端口且允许VLAN 1~30通过,在该端口上关闭生成树协议并开启接收Flush报文的功能,并指定接收Flush报文的控制VLAN为VLAN 10。
[DeviceB] interface ten-gigabitethernet 1/0/3
[DeviceB-Ten-GigabitEthernet1/0/3] port link-type trunk
[DeviceB-Ten-GigabitEthernet1/0/3] port trunk permit vlan 1 to 30
[DeviceB-Ten-GigabitEthernet1/0/3] undo stp enable
[DeviceB-Ten-GigabitEthernet1/0/3] smart-link flush enable control-vlan 10
[DeviceB-Ten-GigabitEthernet1/0/3] quit
(4) 配置Device E
# 创建VLAN 1~30。
<DeviceE> system-view
[DeviceE] vlan 1 to 30
# 将端口Ten-GigabitEthernet1/0/1配置为Trunk端口且允许VLAN 1~30通过,在该端口上开启接收Flush报文的功能,并指定接收Flush报文的控制VLAN为VLAN 10和20。
[DeviceE] interface ten-gigabitethernet 1/0/1
[DeviceE-Ten-GigabitEthernet1/0/1] port link-type trunk
[DeviceE-Ten-GigabitEthernet1/0/1] port trunk permit vlan 1 to 30
[DeviceE-Ten-GigabitEthernet1/0/1] smart-link flush enable control-vlan 10 20
[DeviceE-Ten-GigabitEthernet1/0/1] quit
# 将端口Ten-GigabitEthernet1/0/2配置为Trunk端口且允许VLAN 1~30通过,在该端口上关闭生成树协议并开启接收Flush报文的功能,并指定接收Flush报文的控制VLAN为VLAN 10。
[DeviceE] interface ten-gigabitethernet 1/0/2
[DeviceE-Ten-GigabitEthernet1/0/2] port link-type trunk
[DeviceE-Ten-GigabitEthernet1/0/2] port trunk permit vlan 1 to 30
[DeviceE-Ten-GigabitEthernet1/0/2] undo stp enable
[DeviceE-Ten-GigabitEthernet1/0/2] smart-link flush enable control-vlan 10
[DeviceE-Ten-GigabitEthernet1/0/2] quit
# 将端口Ten-GigabitEthernet1/0/3配置为Trunk端口且允许VLAN 1~30通过,在该端口上关闭生成树协议并开启接收Flush报文的功能,并指定接收Flush报文的控制VLAN为VLAN 20。
[DeviceE] interface ten-gigabitethernet 1/0/3
[DeviceE-Ten-GigabitEthernet1/0/3] port link-type trunk
[DeviceE-Ten-GigabitEthernet1/0/3] port trunk permit vlan 1 to 30
[DeviceE-Ten-GigabitEthernet1/0/3] undo stp enable
[DeviceE-Ten-GigabitEthernet1/0/3] smart-link flush enable control-vlan 20
[DeviceE-Ten-GigabitEthernet1/0/3] quit
(5) 配置Device A
# 创建VLAN 1~30。
<DeviceA> system-view
[DeviceA] vlan 1 to 30
# 分别将端口Ten-GigabitEthernet1/0/1和Ten-GigabitEthernet1/0/2配置为Trunk端口且允许VLAN 1~30通过,在这些端口上开启接收Flush报文的功能,并指定接收Flush报文的控制VLAN为VLAN 10和20。
[DeviceA] interface ten-gigabitethernet 1/0/1
[DeviceA-Ten-GigabitEthernet1/0/1] port link-type trunk
[DeviceA-Ten-GigabitEthernet1/0/1] port trunk permit vlan 1 to 30
[DeviceA-Ten-GigabitEthernet1/0/1] smart-link flush enable control-vlan 10 20
[DeviceA-Ten-GigabitEthernet1/0/1] quit
[DeviceA] interface ten-gigabitethernet 1/0/2
[DeviceA-Ten-GigabitEthernet1/0/2] port link-type trunk
[DeviceA-Ten-GigabitEthernet1/0/2] port trunk permit vlan 1 to 30
[DeviceA-Ten-GigabitEthernet1/0/2] smart-link flush enable control-vlan 10 20
[DeviceA-Ten-GigabitEthernet1/0/2] quit
(0)
暂无评论
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论