H3C Technologies H3C S7500E Series Switches User Manual
Page 124
8-53
# Create VLAN 1 through VLAN 200, map VLANs 1 through 100 to MSTI 1, and VLANs 101 through
200 to MSTI 2, and activate MST region configuration.
[DeviceC] vlan 1 to 200
[DeviceC] stp region-configuration
[DeviceC-mst-region] instance 1 vlan 1 to 100
[DeviceC-mst-region] instance 2 vlan 101 to 200
[DeviceC-mst-region] active region-configuration
[DeviceC-mst-region] quit
# Disable STP on GigabitEthernet 2/0/1 and GigabitEthernet 2/0/2 separately, configure the ports as
trunk ports, and assign them to VLAN 1 through VLAN 200.
[DeviceC] interface gigabitethernet 2/0/1
[DeviceC-GigabitEthernet2/0/1] undo stp enable
[DeviceC-GigabitEthernet2/0/1] port link-type trunk
[DeviceC-GigabitEthernet2/0/1] port trunk permit vlan 1 to 200
[DeviceC-GigabitEthernet2/0/1] quit
[DeviceC] interface gigabitethernet 2/0/2
[DeviceC-GigabitEthernet2/0/2] undo stp enable
[DeviceC-GigabitEthernet2/0/2] port link-type trunk
[DeviceC-GigabitEthernet2/0/2] port trunk permit vlan 1 to 200
[DeviceC-GigabitEthernet2/0/2] quit
# Create smart link group 1, and configure all VLANs mapped to MSTI 1 as the protected VLANs for
smart link group 1.
[DeviceC] smart-link group 1
[DeviceC-smlk-group1] protected-vlan reference-instance 1
# Configure GigabitEthernet 2/0/1 as the master port and GigabitEthernet 2/0/2 as the slave port for
smart link group 1.
[DeviceC-smlk-group1] port gigabitethernet 2/0/1 master
[DeviceC-smlk-group1] port gigabitethernet 2/0/2 slave
# 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-group-1] flush enable control-vlan 10
[DeviceC-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.
[DeviceC] smart-link group 2
[DeviceC-smlk-group2] protected-vlan reference-instance 2
# Configure GigabitEthernet 2/0/1 as the slave port and GigabitEthernet 2/0/2 as the master port for
smart link group 2.
[DeviceC-smlk-group2] port gigabitethernet 2/0/2 master
[DeviceC-smlk-group2] port gigabitethernet 2/0/1 slave
# Enable role preemption in smart link group 2, enable flush message sending, and configure VLAN
101 as the transmit control VLAN.
[DeviceC-smlk-group2] preemption mode role
[DeviceC-smlk-group2] flush enable control-vlan 101
[DeviceC-smlk-group2] quit
2) Configuration on Device B