H3C Technologies H3C S12500 Series Switches User Manual
Page 128

117
# Configure GigabitEthernet 4/0/1 as the master port and GigabitEthernet 4/0/2 as the slave
port for smart link group 1.
[SwitchC-smlk-group1] port gigabitethernet4/0/1 master
[SwitchC-smlk-group1] port gigabitethernet4/0/2 slave
# Enable role preemption in smart link group 1, enable flush message sending, and configure
VLAN 10 as the transmit control VLAN.
[SwitchC-smlk-group1] preemption mode role
[SwitchC-smlk-group-1] flush enable control-vlan 10
[SwitchC-smlk-group-1] quit
# Create smart link group 2, and configure all VLANs mapped to MSTI 2 as the protected VLANs
for smart link group 2.
[SwitchC] smart-link group 2
[SwitchC-smlk-group2] protected-vlan reference-instance 2
# Configure GigabitEthernet 4/0/1 as the slave port and GigabitEthernet 4/0/2 as the master
port for smart link group 2.
[SwitchC-smlk-group2] port gigabitethernet4/0/2 master
[SwitchC-smlk-group2] port gigabitethernet4/0/1 slave
# Enable role preemption in smart link group 2, enable flush message sending, and configure
VLAN 110 as the transmit control VLAN.
[SwitchC-smlk-group2] preemption mode role
[SwitchC-smlk-group2] flush enable control-vlan 110
[SwitchC-smlk-group2] quit
# Bring up GigabitEthernet 4/0/1 and GigabitEthernet 4/0/2 again.
[SwitchC] interface gigabitethernet 4/0/1
[SwitchC-GigabitEthernet4/0/1] undo shutdown
[SwitchC-GigabitEthernet4/0/1] quit
[SwitchC] interface gigabitethernet 4/0/2
[SwitchC-GigabitEthernet4/0/2] undo shutdown
[SwitchC-GigabitEthernet4/0/2] quit
2.
Configure Switch B:
# Create VLAN 1 through VLAN 200.
[SwitchB] vlan 1 to 200
# Configure GigabitEthernet 4/0/1 as a trunk port and assign it to VLANs 1 through 200. Enable
flush message receiving and configure VLAN 10 and VLAN 110 as the receive control VLANs on
GigabitEthernet 4/0/1.
[SwitchB] interface gigabitethernet 4/0/1
[SwitchB-GigabitEthernet4/0/1] port link-type trunk
[SwitchB-GigabitEthernet4/0/1] port trunk permit vlan 1 to 200
[SwitchB-GigabitEthernet4/0/1] smart-link flush enable control-vlan 10 110
[SwitchB-GigabitEthernet4/0/1] quit
# Configure GigabitEthernet 4/0/2 as a trunk port and assign it to VLANs 1 through 200. Disable
the spanning tree feature and enable flush message receiving on it, and configure VLAN 10 and
VLAN 110 as the receive control VLANs.
[SwitchB] interface gigabitethernet 4/0/2
[SwitchB-GigabitEthernet4/0/2] port link-type trunk
[SwitchB-GigabitEthernet4/0/2] port trunk permit vlan 1 to 200