beautypg.com

H3C Technologies H3C S5560 Series Switches User Manual

Page 226

background image

192

# Globally enable MVRP.

[DeviceA] mvrp global enable

# Configure 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 GigabitEthernet 1/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 GigabitEthernet 1/0/2.

[DeviceA-GigabitEthernet1/0/2] mvrp enable

[DeviceA-GigabitEthernet1/0/2] quit

# Configure 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 GigabitEthernet 1/0/3.

[DeviceA-GigabitEthernet1/0/3] mvrp enable

[DeviceA-GigabitEthernet1/0/3] quit

# Create VLAN 10.

[DeviceA] vlan 10

[DeviceA-vlan10] quit

2.

Configure Device B:
# Enter MST region view.

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 global enable

# Globally enable MVRP.

[DeviceB] mvrp global enable

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