1-10[DeviceC] interface gigabitethernet 1/0/1[DeviceC-GigabitEthernet1/0/1] undo stp enable[DeviceC-GigabitEthernet1/0/1] port link-type trunk[DeviceC-GigabitEthernet1/0/1] port trunk permit vlan 1 to 30[DeviceC-GigabitEthernet1/0/1] quit[DeviceC] interface gigabitethernet 1/0/2[DeviceC-GigabitEthernet1/0/2] undo stp enable[DeviceC-GigabitEthernet1/0/2] port link-type trunk[DeviceC-GigabitEthernet1/0/2] port trunk permit vlan 1 to 30[DeviceC-GigabitEthernet1/0/2] quit# Create smart link group 1 and configure all VLANs mapped to MSTIs 0 through 2 as the protectedVLANs.[DeviceC] smart-link group 1[DeviceC-smlk-group1] protected-vlan reference-instance 0 to 2# Configure GigabitEthernet 1/0/1 as the master port and GigabitEthernet 1/0/2 as the slave port forsmart link group 1.[DeviceC-smlk-group1] port gigabitethernet 1/0/1 master[DeviceC-smlk-group1] port gigabitethernet 1/0/2 slave# Enable flush message sending in smart link group 1.[DeviceC-smlk-group1] flush enable[DeviceC-smlk-group1] quit2) Configuration on Device D# Create VLANs 1 through 30, map VLANs 1 through 10, VLANs 11 through 20, and VLANs 21through 30 to MSTI 0, MSTI 1, and MSTI 2 respectively, and activate the MST region configuration. system-view[DeviceD] vlan 1 to 30[DeviceD] stp region-configuration[DeviceD-mst-region] instance 0 vlan 1 to 10[DeviceD-mst-region] instance 1 vlan 11 to 20[DeviceD-mst-region] instance 2 vlan 21 to 30[DeviceD-mst-region] active region-configuration[DeviceD-mst-region] quit# Disable STP on GigabitEthernet 1/0/1 and GigabitEthernet 1/0/2 separately, and configure them astrunk ports that permit VLANs 1 through 30.[DeviceD] interface gigabitethernet 1/0/1[DeviceD-GigabitEthernet1/0/1] undo stp enable[DeviceD-GigabitEthernet1/0/1] port link-type trunk[DeviceD-GigabitEthernet1/0/1] port trunk permit vlan 1 to 30[DeviceD-GigabitEthernet1/0/1] quit[DeviceD] interface gigabitethernet 1/0/2[DeviceD-GigabitEthernet1/0/2] undo stp enable[DeviceD-GigabitEthernet1/0/2] port link-type trunk[DeviceD-GigabitEthernet1/0/2] port trunk permit vlan 1 to 30[DeviceD-GigabitEthernet1/0/2] quit