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

Page 212

Advertising
background image

201

[DeviceA] stp enable

# Globally enable MVRP.

[DeviceA] mvrp global enable

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

[DeviceA] interface gigabitethernet 1/0/1

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

[DeviceA-GigabitEthernet1/0/1] port trunk permit vlan all

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

[DeviceA-GigabitEthernet1/0/1] mvrp enable

[DeviceA-GigabitEthernet1/0/1] quit

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

[DeviceA] interface gigabitethernet 1/0/2

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

[DeviceA-GigabitEthernet1/0/2] port trunk permit vlan 40

# Enable MVRP on port GigabitEthernet1/0/2.

[DeviceA-GigabitEthernet1/0/2] mvrp enable

[DeviceA-GigabitEthernet1/0/2] quit

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

[DeviceA] interface gigabitethernet 1/0/3

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

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

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

[DeviceA-GigabitEthernet1/0/3] mvrp enable

[DeviceA-GigabitEthernet1/0/3] quit

# Create VLAN 10.

[DeviceA] vlan 10

[DeviceA-vlan10] quit

Configuring Device B

# Enter MST region view.

<DeviceB> system-view

[DeviceB] stp region-configuration

# Configure the MST region name, VLAN-to-instance mappings, and revision level.

[DeviceB-mst-region] region-name example

[DeviceB-mst-region] instance 1 vlan 10

[DeviceB-mst-region] instance 2 vlan 20

[DeviceB-mst-region] revision-level 0

# Manually activate the MST region configuration.

[DeviceB-mst-region] active region-configuration

[DeviceB-mst-region] quit

# Configure Device B as the primary root bridge of MSTI 2.

[DeviceB] stp instance 2 root primary

# Globally enable the spanning tree feature.

[DeviceB] stp enable

Advertising