smart-link怎配置
smart-link怎配置
(0)
最佳答案
· 在图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
# 分别关闭端口Twenty-FiveGigE1/0/1和Twenty-FiveGigE1/0/2,在这两个端口上分别关闭生成树协议,并将端口配置为Trunk端口且允许VLAN 1~30通过。
[DeviceC] interface twenty-fivegige 1/0/1
[DeviceC-Twenty-FiveGigE1/0/1] shutdown
[DeviceC-Twenty-FiveGigE1/0/1] undo stp enable
[DeviceC-Twenty-FiveGigE1/0/1] port link-type trunk
[DeviceC-Twenty-FiveGigE1/0/1] port trunk permit vlan 1 to 30
[DeviceC-Twenty-FiveGigE1/0/1] quit
[DeviceC] interface twenty-fivegige 1/0/2
[DeviceC-Twenty-FiveGigE1/0/2] shutdown
[DeviceC-Twenty-FiveGigE1/0/2] undo stp enable
[DeviceC-Twenty-FiveGigE1/0/2] port link-type trunk
[DeviceC-Twenty-FiveGigE1/0/2] port trunk permit vlan 1 to 30
[DeviceC-Twenty-FiveGigE1/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的主端口为Twenty-FiveGigE1/0/1,从端口为Twenty-FiveGigE1/0/2。
[DeviceC-smlk-group1] port twenty-fivegige 1/0/1 primary
[DeviceC-smlk-group1] port twenty-fivegige 1/0/2 secondary
# 在Smart Link组1中开启发送Flush报文的功能,并指定发送Flush报文的控制VLAN为VLAN 10。
[DeviceC-smlk-group1] flush enable control-vlan 10
[DeviceC-smlk-group1] quit
# 重新开启端口Twenty-FiveGigE1/0/1和Twenty-FiveGigE1/0/2。
[DeviceC] interface twenty-fivegige 1/0/1
[DeviceC-Twenty-FiveGigE1/0/1] undo shutdown
[DeviceC-Twenty-FiveGigE1/0/1] quit
[DeviceC] interface twenty-fivegige 1/0/2
[DeviceC-Twenty-FiveGigE1/0/2] undo shutdown
[DeviceC-Twenty-FiveGigE1/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
# 分别关闭端口Twenty-FiveGigE1/0/1和Twenty-FiveGigE1/0/2,在这两个端口上分别关闭生成树协议,并将端口配置为Trunk端口且允许VLAN 1~30通过。
[DeviceD] interface twenty-fivegige 1/0/1
[DeviceD-Twenty-FiveGigE1/0/1] shutdown
[DeviceD-Twenty-FiveGigE1/0/1] undo stp enable
[DeviceD-Twenty-FiveGigE1/0/1] port link-type trunk
[DeviceD-Twenty-FiveGigE1/0/1] port trunk permit vlan 1 to 30
[DeviceD-Twenty-FiveGigE1/0/1] quit
[DeviceD] interface twenty-fivegige 1/0/2
[DeviceD-Twenty-FiveGigE1/0/2] shutdown
[DeviceD-Twenty-FiveGigE1/0/2] undo stp enable
[DeviceD-Twenty-FiveGigE1/0/2] port link-type trunk
[DeviceD-Twenty-FiveGigE1/0/2] port trunk permit vlan 1 to 30
[DeviceD-Twenty-FiveGigE1/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的主端口为Twenty-FiveGigE1/0/1,从端口为Twenty-FiveGigE1/0/2。
[DeviceD-smlk-group1] port twenty-fivegige 1/0/1 primary
[DeviceD-smlk-group1] port twenty-fivegige 1/0/2 secondary
# 在Smart Link组1中开启发送Flush报文的功能,并指定发送Flush报文的控制VLAN为VLAN 20。
[DeviceD-smlk-group1] flush enable control-vlan 20
[DeviceD-smlk-group1] quit
# 重新开启端口Twenty-FiveGigE1/0/1和Twenty-FiveGigE1/0/2。
[DeviceD] interface twenty-fivegige 1/0/1
[DeviceD-Twenty-FiveGigE1/0/1] undo shutdown
[DeviceD-Twenty-FiveGigE1/0/1] quit
[DeviceD] interface twenty-fivegige 1/0/2
[DeviceD-Twenty-FiveGigE1/0/2] undo shutdown
[DeviceD-Twenty-FiveGigE1/0/2] quit
(3) 配置Device B
# 创建VLAN 1~30。
<DeviceB> system-view
[DeviceB] vlan 1 to 30
# 将端口Twenty-FiveGigE1/0/1配置为Trunk端口且允许VLAN 1~30通过,在该端口上开启接收Flush报文的功能,并指定接收Flush报文的控制VLAN为VLAN 10和20。
[DeviceB] interface twenty-fivegige 1/0/1
[DeviceB-Twenty-FiveGigE1/0/1] port link-type trunk
[DeviceB-Twenty-FiveGigE1/0/1] port trunk permit vlan 1 to 30
[DeviceB-Twenty-FiveGigE1/0/1] smart-link flush enable control-vlan 10 20
[DeviceB-Twenty-FiveGigE1/0/1] quit
# 将端口Twenty-FiveGigE1/0/2配置为Trunk端口且允许VLAN 1~30通过,在该端口上关闭生成树协议并开启接收Flush报文的功能,并指定接收Flush报文的控制VLAN为VLAN 20。
[DeviceB] interface twenty-fivegige 1/0/2
[DeviceB-Twenty-FiveGigE1/0/2] port link-type trunk
[DeviceB-Twenty-FiveGigE1/0/2] port trunk permit vlan 1 to 30
[DeviceB-Twenty-FiveGigE1/0/2] undo stp enable
[DeviceB-Twenty-FiveGigE1/0/2] smart-link flush enable control-vlan 20
[DeviceB-Twenty-FiveGigE1/0/2] quit
# 将端口Twenty-FiveGigE1/0/3配置为Trunk端口且允许VLAN 1~30通过,在该端口上关闭生成树协议并开启接收Flush报文的功能,并指定接收Flush报文的控制VLAN为VLAN 10。
[DeviceB] interface twenty-fivegige 1/0/3
[DeviceB-Twenty-FiveGigE1/0/3] port link-type trunk
[DeviceB-Twenty-FiveGigE1/0/3] port trunk permit vlan 1 to 30
[DeviceB-Twenty-FiveGigE1/0/3] undo stp enable
[DeviceB-Twenty-FiveGigE1/0/3] smart-link flush enable control-vlan 10
[DeviceB-Twenty-FiveGigE1/0/3] quit
(4) 配置Device E
# 创建VLAN 1~30。
<DeviceE> system-view
[DeviceE] vlan 1 to 30
# 将端口Twenty-FiveGigE1/0/1配置为Trunk端口且允许VLAN 1~30通过,在该端口上开启接收Flush报文的功能,并指定接收Flush报文的控制VLAN为VLAN 10和20。
[DeviceE] interface twenty-fivegige 1/0/1
[DeviceE-Twenty-FiveGigE1/0/1] port link-type trunk
[DeviceE-Twenty-FiveGigE1/0/1] port trunk permit vlan 1 to 30
[DeviceE-Twenty-FiveGigE1/0/1] smart-link flush enable control-vlan 10 20
[DeviceE-Twenty-FiveGigE1/0/1] quit
# 将端口Twenty-FiveGigE1/0/2配置为Trunk端口且允许VLAN 1~30通过,在该端口上关闭生成树协议并开启接收Flush报文的功能,并指定接收Flush报文的控制VLAN为VLAN 10。
[DeviceE] interface twenty-fivegige 1/0/2
[DeviceE-Twenty-FiveGigE1/0/2] port link-type trunk
[DeviceE-Twenty-FiveGigE1/0/2] port trunk permit vlan 1 to 30
[DeviceE-Twenty-FiveGigE1/0/2] undo stp enable
[DeviceE-Twenty-FiveGigE1/0/2] smart-link flush enable control-vlan 10
[DeviceE-Twenty-FiveGigE1/0/2] quit
# 将端口Twenty-FiveGigE1/0/3配置为Trunk端口且允许VLAN 1~30通过,在该端口上关闭生成树协议并开启接收Flush报文的功能,并指定接收Flush报文的控制VLAN为VLAN 20。
[DeviceE] interface twenty-fivegige 1/0/3
[DeviceE-Twenty-FiveGigE1/0/3] port link-type trunk
[DeviceE-Twenty-FiveGigE1/0/3] port trunk permit vlan 1 to 30
[DeviceE-Twenty-FiveGigE1/0/3] undo stp enable
[DeviceE-Twenty-FiveGigE1/0/3] smart-link flush enable control-vlan 20
[DeviceE-Twenty-FiveGigE1/0/3] quit
(5) 配置Device A
# 创建VLAN 1~30。
<DeviceA> system-view
[DeviceA] vlan 1 to 30
# 分别将端口Twenty-FiveGigE1/0/1和Twenty-FiveGigE1/0/2配置为Trunk端口且允许VLAN 1~30通过,在这些端口上开启接收Flush报文的功能,并指定接收Flush报文的控制VLAN为VLAN 10和20。
[DeviceA] interface twenty-fivegige 1/0/1
[DeviceA-Twenty-FiveGigE1/0/1] port link-type trunk
[DeviceA-Twenty-FiveGigE1/0/1] port trunk permit vlan 1 to 30
[DeviceA-Twenty-FiveGigE1/0/1] smart-link flush enable control-vlan 10 20
[DeviceA-Twenty-FiveGigE1/0/1] quit
[DeviceA] interface twenty-fivegige 1/0/2
[DeviceA-Twenty-FiveGigE1/0/2] port link-type trunk
[DeviceA-Twenty-FiveGigE1/0/2] port trunk permit vlan 1 to 30
[DeviceA-Twenty-FiveGigE1/0/2] smart-link flush enable control-vlan 10 20
[DeviceA-Twenty-FiveGigE1/0/2] quit
通过使用display smart-link group命令可以查看设备上Smart Link组的信息:
# 显示Device C上Smart Link组的信息。
[DeviceC] display smart-link group 1
Smart link group 1 information:
Device ID : 000f-e23d-5af0
Preemption mode : None
Preemption delay: 1(s)
Control VLAN : 10
Protected VLAN : Reference Instance 1
Member Role State Flush-count Last-flush-time
-----------------------------------------------------------------------------
WGE1/0/1 PRIMARY ACTIVE 5 16:45:20 2012/04/21
WGE1/0/2 SECONDARY STANDBY 1 16:37:20 2012/04/21
通过使用display smart-link flush命令可以查看设备上收到的Flush报文信息:
# 显示Device B上收到的Flush报文信息。
[DeviceB] display smart-link flush
Received flush packets : 5
Receiving interface of the last flush packet : Twenty-FiveGigE1/0/3
Receiving time of the last flush packet : 16:50:21 2012/04/21
Device ID of the last flush packet : 000f-e23d-5af0
Control VLAN of the last flush packet : 10
(0)
您好,请知:
以下是smart-link的配置案例,请参考:
采用双smart-link组,实现两路冗余及流量负载均衡。
1、在SW1创建两个smart-link组
2、需要两个保护VLAN,这里提前规划,VLAN10作为smart-link组1的保护VLAN,VLAN20作为smart-link组2的保护VLAN
配置过程:
SW1:
[H3C]sysname SW1
[SW1]vl 10
[SW1-vlan10]qu
[SW1]vl 20
[SW1-vlan20]qu
[SW1]vl 30
[SW1-vlan30]qu
[SW1]vl 40
[SW1-vlan40]qu
[SW1]
[SW1]stp region-configuration
[SW1-mst-region]region-name ***.***
[SW1-mst-region]instance 0 vlan 10 30
[SW1-mst-region]instance 1 vlan 20 40
[SW1-mst-region]active region-configuration
[SW1-mst-region]quit
[SW1]int ran gi 1/0/1 to gi 1/0/2
[SW1-if-range]po li tr
[SW1-if-range]undo po tr pe vlan 1
[SW1-if-range]po tr pe vlan 10 20 30 40
[SW1-if-range]smart-link flush enable control-vlan 10 20
[SW1-if-range]undo stp en
[SW1-if-range]qu
[SW1]smart-link group 1
[SW1-smlk-group1]protected-vlan reference-instance 0
[SW1-smlk-group1]flush enable control-vlan 10
[SW1-smlk-group1]po gi 1/0/1 primary
[SW1-smlk-group1]po gi 1/0/2 secondary
[SW1-smlk-group1]quit
[SW1]
[SW1]smart-link group 2
[SW1-smlk-group2]protected-vlan reference-instance 1
[SW1-smlk-group2]flush enable control-vlan 20
[SW1-smlk-group2]port gi 1/0/2 primary
[SW1-smlk-group2]port GigabitEthernet 1/0/1 secondary
[SW1-smlk-group2]quit
[SW1]
SW2:
[H3C]sysname SW2
[SW2]vl 10
[SW2-vlan10]qu
[SW2]vl 20
[SW2-vlan20]qu
[SW2]vl 30
[SW2-vlan30]qu
[SW2]vl 40
[SW2-vlan40]qu
[SW2]int ran gi 1/0/1 to gi 1/0/2
[SW2-if-range]po li tr
[SW2-if-range]undo po tr pe vlan 1
[SW2-if-range]po tr pe vlan 10 20 30 40
[SW2-if-range]smart-link flush enable control-vlan 10 20
[SW2-if-range]quit
[SW2]monitor-link group 1
[SW2-mtlk-group1]port gi 1/0/1 uplink
[SW2-mtlk-group1]port gi 1/0/2 downlink
[SW2-mtlk-group1]quit
[SW3]vlan 10
[SW3-vlan10]qu
[SW3]vl 20
[SW3-vlan20]qu
[SW3]vl 30
[SW3-vlan30]qu
[SW3]vl 40
[SW3-vlan40]qu
[SW3]int ran gi 1/0/1 to gi 1/0/2
[SW3-if-range]po li tr
[SW3-if-range]undo po tr pe vlan 1
[SW3-if-range]po tr pe vlan 10 20 30 40
[SW3-if-range]smart-link flush enable co
[SW3-if-range]smart-link flush enable control-vlan 10 20
[SW3-if-range]quit
[SW3]monitor-link group 1
[SW3-mtlk-group1]port gi 1/0/1 uplink
[SW3-mtlk-group1]port GigabitEthernet 1/0/2 downlink
[SW3-mtlk-group1]quit
[SW3]
SW4(网关所在设备):
[H3C]sysname SW4
[SW4]vlan 10
[SW4-vlan10]qu
[SW4]vlan 20
[SW4-vlan20]quit
[SW4]vlan 30
[SW4-vlan30]quit
[SW4]vlan 40
[SW4-vlan40]quit
[SW4]int ran gi 1/0/1 to gi 1/0/2
[SW4-if-range]po li tr
[SW4-if-range]undo po tr pe vlan 1
[SW4-if-range]po tr pe vlan 10 20 30 40
[SW4-if-range]smart-link flush enable control-vlan 10 20
[SW4-if-range]quit
[SW4]int vlan 30
[SW4-Vlan-interface30]ip address 192.168.30.254 24
[SW4-Vlan-interface30]undo shutdown
[SW4-Vlan-interface30]quit
[SW4]int vlan 40
[SW4-Vlan-interface40]ip address 192.168.40.254 24
[SW4-Vlan-interface40]undo shutdown
[SW4-Vlan-interface40]quit
[SW4]int LoopBack 0
[SW4-LoopBack0]ip address 1.1.1.1 30
[SW4-LoopBack0]undo shutdown
[SW4-LoopBack0]quit
[SW4]
(0)
暂无评论
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论