beautypg.com

Configuring device c – H3C Technologies H3C WX5500E Series Access Controllers User Manual

Page 213

background image

202

# Globally enable MVRP.

[DeviceB] mvrp global enable

# Configure port GigabitEthernet 1/0/1 as a trunk port, and configure it to permit VLANs 20 and 40.

[DeviceB] interface gigabitethernet 1/0/1

[DeviceB-GigabitEthernet1/0/1] port link-type trunk

[DeviceB-GigabitEthernet1/0/1] port trunk permit vlan 20 40

# Enable MVRP on port GigabitEthernet 1/0/1.

[DeviceB-GigabitEthernet1/0/1] mvrp enable

[DeviceB-GigabitEthernet1/0/1] quit

# Configure port GigabitEthernet1/0/2 as a trunk port, and configure it to permit all VLANs.

[DeviceB] interface gigabitethernet 1/0/2

[DeviceB-GigabitEthernet1/0/2] port link-type trunk

[DeviceB-GigabitEthernet1/0/2] port trunk permit vlan all

# Enable MVRP on port GigabitEthernet1/0/2.

[DeviceB-GigabitEthernet1/0/2] mvrp enable

[DeviceB-GigabitEthernet1/0/2] quit

# Configure port GigabitEthernet 1/0/3 as a trunk port, and configure it to permit all VLANs.

[DeviceB] interface gigabitethernet 1/0/3

[DeviceB-GigabitEthernet1/0/3] port link-type trunk

[DeviceB-GigabitEthernet1/0/3] port trunk permit vlan all

# Enable MVRP on port GigabitEthernet 1/0/3.

[DeviceB-GigabitEthernet1/0/3] mvrp enable

[DeviceB-GigabitEthernet1/0/3] quit

# Create VLAN 20.

[DeviceB] vlan 20

[DeviceB-vlan20] quit

Configuring Device C

# Enter MST region view.

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.