![Huawei AR3200 Series Configuration Manual - Lan Download Page 270](http://html.mh-extra.com/html/huawei/ar3200-series/ar3200-series_configuration-manual-lan_169302270.webp)
NOTE
l
Huawei 2300 Series Switch is configured in this example. If the Switch devices are not Huawei
2300 Series, refer to the devices' manual of configuration guide.
2.
Add all devices to MST region RG1, and create two MSTIs. MSTI1 maps to VLAN (2 to
10), and MSTI2 maps to VLAN (11 to 20).
# Configure RouterA to MST region.
[RouterA]
stp region-configuration
[RouterA]
region-name RG1
[RouterA]
instance 1 vlan 2 to 10
[RouterA]
instance 2 vlan 11 to 20
[RouterA]
active region-configuration
[RouterA]
quit
# Configure SwitchA, SwitchB, SwitchC and SwitchD to MST region RG1, and create two
MSTIs. MSTI1 maps to VLAN (2 to 10), and MSTI2 maps to VLAN (11 to 20).
3.
In RG1, configure primary and secondary root bridges for MSTI1 and MSTI2.
# Configure primary root bridge on RouterA in MSTI1.
[RouterA]
stp instance 1 root primary
# Configure secondary root bridge on SwitchA in MSTI1.
# Configure primary root bridge on RouterA in MSTI2.
[RouterA]
stp instance 2 root primary
# Configure secondary root bridge on SwitchB in MSTI2.
4.
Set the path costs of the ports to be blocked in MSTI1 and MSTI2 to be larger than the
default value.
NOTE
l
The values of path costs depend on path cost calculation methods. Use the Huawei proprietary
calculation method as an example to set the path costs of the ports to be blocked to 200000.
l
If the switches are not Huawei 2300 Series, all switches on a network must use the same path
cost calculation method. Refer to STP List of path costs to get standard of other calculation
methods.
# On RouterA, configure the path cost calculation method as the Huawei proprietary
method.
[RouterA]
stp pathcost-standard legacy
# On SwitchA, SwitchB, SwitchC and SwitchD, configure the path cost calculation method
as the Huawei proprietary method.
# As shown in
, set the path cost of Eth0/0/4 on SwitchC to 200000 in MSTI1.
# As shown in
, set the path cost of Eth0/0/4 on SwitchD to 200000 in MSTI2.
5.
Enable MSTP to eliminate loops.
l
Disable MSTP on interfaces connected to PCs.
# As shown in
, disable MSTP on interface Eth0/0/2 and Eth0/0/3 of SwitchC.
# As shown in
, disable MSTP on interface Eth0/0/2 and Eth0/0/3 of SwitchD.
l
Enable MSTP globally.
# Enable MSTP globally on RouterA.
[RouterA]
stp enable
# Enable MSTP globally on SwitchA, SwitchB, SwitchC and SwitchD.
l
Enable MSTP on all the interfaces except the interfaces connected to terminals.
# Enable MSTP on RouterA Eth2/0/0 and Eth2/0/1.
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.
259