- 配置VLAN信息
[LSW1]vlan batch 10 20 30
[LSW1-GigabitEthernet0/0/2]port link-type trunk
[LSW1-GigabitEthernet0/0/2]port trunk allow-pass vlan 10 20 30
[LSW1-GigabitEthernet0/0/3]port link-type trunk
[LSW1-GigabitEthernet0/0/3]port trunk allow-pass vlan 10 20 30
[LSW2]vlan batch 10 20 30
[LSW2-GigabitEthernet0/0/1]port link-type trunk
[LSW2-GigabitEthernet0/0/1]port trunk allow-pass vlan 10 20 30
[LSW2-GigabitEthernet0/0/4]port link-type trunk
[LSW2-GigabitEthernet0/0/4]port trunk allow-pass vlan 10 20 30
[LSW3]vlan batch 10 20 30
[LSW3-GigabitEthernet0/0/1]port link-type trunk
[LSW3-GigabitEthernet0/0/1]port trunk allow-pass vlan 10 20 30
[LSW3-GigabitEthernet0/0/4]port link-type trunk
[LSW3-GigabitEthernet0/0/4]port trunk allow-pass vlan 10 20 30
[LSW4]vlan batch 10 20 30
[LSW4-GigabitEthernet0/0/2]port link-type trunk
[LSW4-GigabitEthernet0/0/2]port trunk allow-pass vlan 10 20 30
[LSW4-GigabitEthernet0/0/3]port link-type trunk
[LSW4-GigabitEthernet0/0/3]port trunk allow-pass vlan 10 20 30 - 创建Smart Link备份组,并指定端口角色
[LSW1-GigabitEthernet0/0/2]stp disable
[LSW1-GigabitEthernet0/0/3]stp disable
[LSW1]smart-link group 1
[LSW1-smlk-group1]port GigabitEthernet 0/0/2 master
[LSW1-smlk-group1]port GigabitEthernet 0/0/3 slave - 使能回切功能并设置回切时间
[LSW1-smlk-group1]restore enable
[LSW1-smlk-group1]timer wtr 30 - 使能发送Flush报文功能
[LSW1-smlk-group1]flush send control-vlan 10 password simple 123 - 使能接收Flush报文功能
[LSW2-GigabitEthernet0/0/1]smart-link flush receive control-vlan 10 password simple 123
[LSW2-GigabitEthernet0/0/1]stp disable
[LSW2-GigabitEthernet0/0/4]smart-link flush receive control-vlan 10 password simple 123
[LSW2-GigabitEthernet0/0/4]stp disable
[LSW3-GigabitEthernet0/0/1]smart-link flush receive control-vlan 10 password simple 123
[LSW3-GigabitEthernet0/0/1]stp disable
[LSW3-GigabitEthernet0/0/4]smart-link flush receive control-vlan 10 password simple 123
[LSW3-GigabitEthernet0/0/4]stp disable
[LSW4-GigabitEthernet0/0/2]smart-link flush receive control-vlan 10 password simple 123
[LSW4-GigabitEthernet0/0/2]stp disable
[LSW4-GigabitEthernet0/0/3]smart-link flush receive control-vlan 10 password simple 123
[LSW4-GigabitEthernet0/0/3]stp disable - 使能Smart Link组功能
[LSW1]smart-link group 1
[LSW1-smlk-group1]smart-link enable - 验证配置
[LSW1-GigabitEthernet0/0/2]shutdown
[LSW1-GigabitEthernet0/0/2]undo shutdown