H3C Technologies H3C S12500 Series Switches User Manual

Page 256

Advertising
background image

243

# Configure Device A as the primary root bridge of MSTI 1.

[DeviceA] stp instance 1 root primary

# Globally enable the spanning tree feature.

[DeviceA] stp enable

# Globally enable MVRP.

[DeviceA] mvrp global enable

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

[DeviceA] interface GigabitEthernet 3/0/1

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

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

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

[DeviceA-GigabitEthernet3/0/1] mvrp enable

[DeviceA-GigabitEthernet3/0/1] quit

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

[DeviceA] interface GigabitEthernet 3/0/2

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

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

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

[DeviceA-GigabitEthernet3/0/2] mvrp enable

[DeviceA-GigabitEthernet3/0/2] quit

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

[DeviceA] interface GigabitEthernet 3/0/3

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

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

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

[DeviceA-GigabitEthernet3/0/3] mvrp enable

[DeviceA-GigabitEthernet3/0/3] quit

# Create VLAN 10.

[DeviceA] vlan 10

[DeviceA-vlan10] quit

2.

Configure 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.

Advertising
This manual is related to the following products: