257
[DeviceB] mvrp global enable
# Configure port Ethernet 1/0/1 as a trunk port, and configure it to permit VLANs 20 and 40.
[DeviceB] interface ethernet 1/0/1
[DeviceB-Ethernet1/0/1] port link-type trunk
[DeviceB-Ethernet1/0/1] port trunk permit vlan 20 40
# Enable MVRP on port Ethernet 1/0/1.
[DeviceB-Ethernet1/0/1] mvrp enable
[DeviceB-Ethernet1/0/1] quit
# Configure port Ethernet1/0/2 as a trunk port, and configure it to permit all VLANs.
[DeviceB] interface ethernet 1/0/2
[DeviceB-Ethernet1/0/2] port link-type trunk
[DeviceB-Ethernet1/0/2] port trunk permit vlan all
# Enable MVRP on port Ethernet1/0/2.
[DeviceB-Ethernet1/0/2] mvrp enable
[DeviceB-Ethernet1/0/2] quit
# Configure port Ethernet 1/0/3 as a trunk port, and configure it to permit all VLANs.
[DeviceB] interface ethernet 1/0/3
[DeviceB-Ethernet1/0/3] port link-type trunk
[DeviceB-Ethernet1/0/3] port trunk permit vlan all
# Enable MVRP on port Ethernet 1/0/3.
[DeviceB-Ethernet1/0/3] mvrp enable
[DeviceB-Ethernet1/0/3] quit
# Create VLAN 20.
[DeviceB] vlan 20
[DeviceB-vlan20] quit
Configuring Device C
# Enter MST region view.
<DeviceC> system-view
[DeviceC] stp region-configuration
# Configure the MST region name, VLAN-to-instance mappings, and revision level.
[DeviceC-mst-region] region-name example
[DeviceC-mst-region] instance 1 vlan 10
[DeviceC-mst-region] instance 2 vlan 20
[DeviceC-mst-region] revision-level 0
# Manually activate the MST region configuration.
[DeviceC-mst-region] active region-configuration
[DeviceC-mst-region] quit
# Configure Device C as the root bridge of MSTI 0.
[DeviceC] stp instance 0 root primary
# Globally enable the spanning tree feature.
[DeviceC] stp enable
# Globally enable MVRP.
[DeviceC] mvrp global enable