102
# Enable role preemption in smart link group 1, enable flush message sending, and configure
VLAN 10 as the transmit control VLAN.
[DeviceC-smlk-group1] preemption mode role
[DeviceC-smlk-group1] flush enable control-vlan 10
[DeviceC-smlk-group1] quit
# Create smart link group 2, and configure all VLANs mapped to MSTI 2 as the protected
VLANs for smart link group 2.
[DeviceC] smart-link group 2
[DeviceC-smlk-group2] protected-vlan reference-instance 2
# Configure Ten-GigabitEthernet 1/0/1 as the secondary port and Ten-GigabitEthernet 1/0/2 as
the primary port for smart link group 2.
[DeviceC-smlk-group2] port ten-gigabitethernet 1/0/2 primary
[DeviceC-smlk-group2] port ten-gigabitethernet 1/0/1 secondary
# Enable role preemption in smart link group 2, enable flush message sending, and configure
VLAN 110 as the transmit control VLAN.
[DeviceC-smlk-group2] preemption mode role
[DeviceC-smlk-group2] flush enable control-vlan 110
[DeviceC-smlk-group2] quit
# Bring up Ten-GigabitEthernet 1/0/1 and Ten-GigabitEthernet 1/0/2.
[DeviceC] interface ten-gigabitethernet 1/0/1
[DeviceC-Ten-GigabitEthernet1/0/1] undo shutdown
[DeviceC-Ten-GigabitEthernet1/0/1] quit
[DeviceC] interface ten-gigabitethernet 1/0/2
[DeviceC-Ten-GigabitEthernet1/0/2] undo shutdown
[DeviceC-Ten-GigabitEthernet1/0/2] quit
2. Configure Device B:
# Create VLAN 1 through VLAN 200.
<DeviceB> system-view
[DeviceB] vlan 1 to 200
# Configure Ten-GigabitEthernet 1/0/1 as a trunk port, assign it to VLANs 1 through 200, enable
flush message receiving, and configure VLAN 10 and VLAN 110 as the receive control VLANs
on the port.
[DeviceB] interface ten-gigabitethernet 1/0/1
[DeviceB-Ten-GigabitEthernet1/0/1] port link-type trunk
[DeviceB-Ten-GigabitEthernet1/0/1] port trunk permit vlan 1 to 200
[DeviceB-Ten-GigabitEthernet1/0/1] smart-link flush enable control-vlan 10 110
[DeviceB-Ten-GigabitEthernet1/0/1] quit
# Configure Ten-GigabitEthernet 1/0/2 as a trunk port, 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.
[DeviceB] interface ten-gigabitethernet 1/0/2
[DeviceB-Ten-GigabitEthernet1/0/2] port link-type trunk
[DeviceB-Ten-GigabitEthernet1/0/2] port trunk permit vlan 1 to 200
[DeviceB-Ten-GigabitEthernet1/0/2] undo stp enable
[DeviceB-Ten-GigabitEthernet1/0/2] smart-link flush enable control-vlan 10 110
[DeviceB-Ten-GigabitEthernet1/0/2] quit
3. Configure Device D:
# Create VLAN 1 through VLAN 200.
<DeviceD> system-view