H3C hcl configuration smart-link

The topology diagram is as follows:
Insert picture description here
Requirements:
1. All vlans can pass through link
2. SW4, vlan10, vlan20 in the first instance, g1/0/1 as the master port, vlan30, vlan40 in the second instance, g1/0 /2 as the master port
4. Instance 1 and instance 2 send and receive Flush messages in Vlan100 and Vlan200 respectively
3. Set the master port to automatically preempt the role
4. Set monitor-link on SW2 and SW3

The configuration sequence of SW4:
1) Configure the trunk port, allow all
VLANs to pass through 2) Enter the stp area configuration, map vlan10, vlan20 to instance 1, map vlan30, vlan40 to instance 2,
3) Enter g1/0/1 and g1 /0/2 port view, close stp
3) Enter the smart-link group, add g1/0/1 and g1/0/2 to the smart-link group, remember to set instance 0 as the protection of a smart-link group vlan
a) Set protection vlan
b) Set control vlan
c) Set master port preemption role

The configuration sequence of SW2 and SW3:
1) Configure the trunk port, allowing all VLANs to pass through
2) Port g1/0/1 and g1/0/2, turn off the stp, and enable the sending and receiving functions of flush messages
3) Enter the monitor- link group, configure the uplink port and downlink port

The configuration sequence of SW1:
1) Configure the trunk port, allowing all VLANs to pass through
2) G1/0/1 and g1/0/2 ports, turn off stp, and enable flush message sending and receiving functions

Note:
1. Remember to set instance 0 as the protection vlan of a smart-link group, otherwise the upstream switch will continue to receive flush packets.
1. The configured port must be closed stp
2. All ports must be enabled to send lush packets and Accept function
3. Control vlan remember to create

Configuration of SW4:

[SW4]vlan 10
[SW4-vlan10]vlan 20
[SW4-vlan20]vlan 30
[SW4-vlan30]vlan 100
[SW4-vlan100]vlan 200
[SW4-vlan200]int g1/0/1
[SW4-GigabitEthernet1/0/1]port link-type trunk
[SW4-GigabitEthernet1/0/1]port trunk permit vlan all
[SW4-GigabitEthernet1/0/1]int g1/0/2
[SW4-GigabitEthernet1/0/2]port link-type trunk
[SW4-GigabitEthernet1/0/2]port trunk permit vlan all
[SW4-GigabitEthernet1/0/2]quit
[SW4]stp region-configuration
[SW4-mst-region]instance 1 vlan 10 20
[SW4-mst-region]instance 2 vlan 30 40
[SW4-mst-region]int g1/0/1
[SW4-GigabitEthernet1/0/1]undo stp enable  //关闭stp
[SW4-GigabitEthernet1/0/1]int g1/0/2
[SW4-GigabitEthernet1/0/2]undo stp enable
[SW4-GigabitEthernet1/0/2]smart-link group 1
[SW4-smlk-group1]protected-vlan reference-instance 1 //设置保护vlan
[SW4-smlk-group1]protected-vlan reference-instance 0 //很重要的一步,也很容易忘记
[SW4-smlk-group1]flush enable control-vlan 100  //设置控制vlan
[SW4-smlk-group1]port g1/0/1 primary  //设置g1/0/1为master端口
[SW4-smlk-group1]port g1/0/2 secondary
[SW4-smlk-group1]preemption mode role  //设置master端口自动抢占角色
[SW4-smlk-group1]smart-link group 2
[SW4-smlk-group2]protected-vlan reference-instance 2
[SW4-smlk-group2]flush enable control-vlan 200
[SW4-smlk-group2]port g1/0/1 secondary
[SW4-smlk-group2]port g1/0/2 primary
[SW4-smlk-group2]preemption mode role

Configuration of SW2:

[SW2]vlan 10
[SW2-vlan10]vlan 20
[SW2-vlan20]vlan 30
[SW2-vlan30]vlan 100
[SW2-vlan100]vlan 200
[SW2-vlan200]int g1/0/1
[SW2-GigabitEthernet1/0/1]port link-type trunk
[SW2-GigabitEthernet1/0/1]port trunk permit vlan all
[SW2-GigabitEthernet1/0/1]int g1/0/2
[SW2-GigabitEthernet1/0/2]port link-type trunk
[SW2-GigabitEthernet1/0/2]port trunk permit vlan all
[SW2-GigabitEthernet1/0/2]int g1/0/1
[SW2-GigabitEthernet1/0/1]undo stp enable
[SW2-GigabitEthernet1/0/1]s

[SW2-GigabitEthernet1/0/1]int g1/0/2
[SW2-GigabitEthernet1/0/2]undo stp enable
[SW2-GigabitEthernet1/0/2]smart-link flush enable control-vlan 100 200
[SW2-GigabitEthernet1/0/2]monitor-link group 1
[SW2-mtlk-group1]port g1/0/1 uplink  //设置g1/0/1为上行端口
[SW2-mtlk-group1]port g1/0/2 downlink  //设置g1/0/2为下行端口

The configuration of SW3:

[SW3]vlan 10
[SW3-vlan10]vlan 20
[SW3-vlan20]vlan 30
[SW3-vlan30]vlan 100
[SW3-vlan100]vlan 200
[SW3-vlan200]int g1/0/1
[SW3-GigabitEthernet1/0/1]port link-type trunk
[SW3-GigabitEthernet1/0/1]port trunk permit vlan all
[SW3-GigabitEthernet1/0/1]int g1/0/2
[SW3-GigabitEthernet1/0/2]port link-type trunk
[SW3-GigabitEthernet1/0/2]port trunk permit vlan all
[SW3-GigabitEthernet1/0/2]int g1/0/1
[SW3-GigabitEthernet1/0/1]undo stp enable
[SW3-GigabitEthernet1/0/1]smart-link flush enable control-vlan 100 200  //让g1/0/1发送和接受flush报文
[SW3-GigabitEthernet1/0/1]int g1/0/2
[SW3-GigabitEthernet1/0/2]undo stp enable
[SW3-GigabitEthernet1/0/2]smart-link flush enable control-vlan 100 200
[SW3-GigabitEthernet1/0/2]monitor-link group 1
[SW3-mtlk-group1]port g1/0/1 uplink  //设置g1/0/1为上行端口
[SW3-mtlk-group1]port g1/0/2 downlink  //设置g1/0/2为下行端口

Configuration of SW1:

[SW1]vlan 10
[SW1-vlan10]vlan 20
[SW1-vlan20]vlan 30
[SW1-vlan30]vlan 100
[SW1-vlan100]vlan 200
[SW1-vlan200]int g1/0/1
[SW1-GigabitEthernet1/0/1]port link-type trunk
[SW1-GigabitEthernet1/0/1]port trunk permit vlan all
[SW1-GigabitEthernet1/0/1]int g1/0/2
[SW1-GigabitEthernet1/0/2]port link-type trunk
[SW1-GigabitEthernet1/0/2]port trunk permit vlan all

Guess you like

Origin blog.csdn.net/qq_44933518/article/details/107767883