smart-link配置 华三smartlink&monitorlink

【smart-link配置 华三smartlink&monitorlink】monitor link组功能:
Monitor Link组也叫监控链路组,由上行接口和下行接口共同组成 。一个组包含一个上行接口和若干个下行接口 。组的成员可以是单接口、静态聚合组、手工聚合组或Smart Link组,其中Smart Link组只能作为上行接口 。下行接口的状态随上行接口的变化而变化 。
配置好Monitor Link组后,上行接口被实时监控,一旦上行接口出现故障,其所在组的所有Up的下行接口都会被强制设为Down状态 。当上行链路恢复正常时,恢复下行接口 。
Smart Link和Monitor Link综合拓扑结构:
SW3向下连接用户网络,通过双上行链路连接到SW1和SW2两台设备上,最后向上连接到骨干网 。为了防止上行链路出现故障导致下游业务中断,需要引入一种监控机制 。即在上行链路出现故障时,能够使下行链路迅速感知,从而及时进行链路切换,缩短业务中断时间 。
拓扑图

smart-link配置 华三smartlink&monitorlink

文章插图
SmartLink+MonitorLink配置方法:
1、在SW1和SW3两台设备上配置Smart Link组,并将相应接口加入Smart Link组中 。
2、在SW1上配置Monitor Link组,其上行链路为Smart Link组 。Smart Link和Monitor Link配合使用,Smart Link组提高了Monitor Link组上行链路的可靠性 。
3、在SW2上配置Monitor Link组,使得SW3上的Smart Link可以迅速感知上行链路上的故障,扩大了Smart Link的应用范围 。
4、在SW1和SW3两台设备上开启发送Flush报文功能 。
5、在SW1和SW2两台设备上开启接收Flush报文功能 。
配置步骤:
1、在SW1、SW2和SW3三台交换机上配置相同控制VLAN,并将加入Smart Link组或Monitor Link组的接口加入该VLAN中
SW1配置

vlan batch 10
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 10
interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan 10
interface GigabitEthernet0/0/3
port link-type trunk
port trunk allow-pass vlan 10
interface GigabitEthernet0/0/4
port link-type trunk
port trunk allow-pass vlan 10
SW2配置
vlan batch 10
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 10
interface GigabitEthernet0/0/3
port link-type trunk
port trunk allow-pass vlan 10
interface GigabitEthernet0/0/4
port link-type trunk
port trunk allow-pass vlan 10
SW3配置

vlan batch 10
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 10
interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan 10
2、在SW1上创建Smart Link组功能,将接口加入Smart Link组并指定主接口、从接口
SW1配置
[SW1]int g0/0/1
[SW1-GigabitEthernet0/0/1]stp disable
[SW1]int g0/0/2
[SW1-GigabitEthernet0/0/2]stp disable
[SW1]smart-link group 1
[SW1-smlk-group1]port GigabitEthernet 0/0/1 master
[SW1-smlk-group1]port GigabitEthernet 0/0/2 slave
3、在SW3上创建Smart Link组功能,将接口加入Smart Link组并指定主接口、从接口
SW3配置

[SW3]int g0/0/1
[SW3-GigabitEthernet0/0/1]stp disable
[SW3]int g0/0/2
[SW3-GigabitEthernet0/0/2]stp disable
[SW3]smart-link group 2
[SW3-smlk-group2]port GigabitEthernet 0/0/1 master
[SW3-smlk-group2]port GigabitEthernet 0/0/2 slave
4、在SW1和SW3上开启回切功能并设置回切时间
[SW1-smlk-group1]restore enable
[SW1-smlk-group1]timer wtr 30
[SW3-smlk-group2]restore enable
[SW3-smlk-group2]timer wtr 30
5、在SW1、SW2和SW3上开启发送/接收Flush报文功能
SW1配置
[SW1-smlk-group1]flush send control-vlan 10 password simple abc
[SW1-GigabitEthernet0/0/3]smart-link flush receive control-vlan 10 password simple abc
[SW1-GigabitEthernet0/0/4]smart-link flush receive control-vlan 10 password simple abc
SW2配置
[SW2-GigabitEthernet0/0/3]smart-link flush receive control-vlan 10 password simple abc
[SW2-GigabitEthernet0/0/4]smart-link flush receive control-vlan 10 password simple abc
SW3配置
[SW3-smlk-group2]flush send control-vlan 10 password simple abc
6、在SW1和SW3开启smart link组并创建monitor link
[SW1-smlk-group1]smart-link enable
[SW3-smlk-group2]smart-link enable
SW1配置monitor link
[SW1]monitor-link group 1
[SW1-mtlk-group1]smart-link group 1 uplink
[SW1-mtlk-group1]port GigabitEthernet 0/0/3 downlink 1


推荐阅读