![Huawei AR3200 Series Configuration Manual - Lan Download Page 271](http://html.mh-extra.com/html/huawei/ar3200-series/ar3200-series_configuration-manual-lan_169302271.webp)
[RouterA]
interface ethernet 2/0/0
[RouterA-Ethernet2/0/0]
stp enable
[RouterA-Ethernet2/0/0]
quit
[RouterA]
interface ethernet 2/0/1
[RouterA-Ethernet2/0/1]
stp enable
[RouterA-Ethernet2/0/1]
quit
, Enable MSTP on all interfaces except the interfaces
connected to terminals, for SwitchA, SwitchB, SwitchC and SwitchD.
Step 2
Configure MSTP protection function.
# Enable root protection on RouterA Eth2/0/0 and Eth2/0/1.
[RouterA]
interface ethernet 2/0/0
[RouterA-Ethernet2/0/0]
stp root-protection
[RouterA-Ethernet2/0/0]
quit
[RouterA]
interface ethernet 2/0/1
[RouterA-Ethernet2/0/1]
stp root-protection
[RouterA-Ethernet2/0/1]
quit
Step 3
Configure the Layer 2 forwarding function on devices in the ring.
l
Create VLANs on RouterA, SwitchA, SwitchB, SwitchC and SwitchD.
# Create VLANs 2 to 20 on RouterA.
[RouterA]
vlan batch 2 to 20
# Create VLANs 2 to 20 on SwitchA and SwitchB.
# Create VLANs 2 to 10 on SwitchC.
# Create VLANs 11 to 20 on SwitchD.
l
Add interfaces on the switching devices in the ring to VLANs.
# Add RouterA Eth2/0/0 and Eth2/0/1 to VLAN 2 to 20.
[RouterA]
interface ethernet 2/0/0
[RouterA-Ethernet2/0/0]
port link-type trunk
[RouterA-Ethernet2/0/0]
port trunk allow-pass vlan 2 to 20
[RouterA-Ethernet2/0/0]
quit
[RouterA]
interface ethernet 2/0/1
[RouterA-Ethernet2/0/1]
port link-type trunk
[RouterA-Ethernet2/0/1]
port trunk allow-pass vlan 2 to 20
[RouterA-Ethernet2/0/1]
quit
# Add interfaces Eth0/0/1, Eth0/0/2 and Eth0/0/3 on SwitchA and SwitchB to VLAN 2 to
20.
# Add interfaces Eth0/0/1, Eth0/0/2, Eth0/0/3 and Eth0/0/4 on SwitchC to VLAN 2 to 10.
# Add interfaces Eth0/0/1, Eth0/0/2, Eth0/0/3 and Eth0/0/4 on SwitchD to VLAN 11 to 20.
Step 4
Verify the configuration.
After the previous configurations, run the following commands to verify the configuration when
the network is stable:
# run
display stp brief
on RouterA to view the interface status and protection type. The displayed
information is as follows:
[RouterA]
display stp brief
MSTID Port Role STP State Protection
0 Ethernet2/0/0 DESI FORWARDING NONE
0 Ethernet2/0/1 DESI FORWARDING NONE
1 Ethernet2/0/0
DESI
FORWARDING
ROOT
1 Ethernet2/0/1
DESI
FORWARDING
ROOT
2 Ethernet2/0/0
DESI
FORWARDING
ROOT
2 Ethernet2/0/1
DESI
FORWARDING
ROOT
Huawei AR3200 Series Enterprise Routers
Configuration Guide - LAN
8 MSTP Configuration
Issue 02 (2012-03-30)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
260