# On Router1 and Router2, create VLAN 100 and add GE7/0/1 to VLAN 100. The
configurations of Router1 and Router2 are similar to the configuration of PE1. For details
about the configuration, see the configuration files.
3.
Enable MSTP.
# Configure PE1.
[PE1]
stp enable
# Configure PE2.
[PE2]
stp enable
# Configure PE3.
[PE3]
stp enable
# Configure PE4.
[PE4]
stp enable
# Configure Router1.
[Router1]
stp enable
# Configure Router2.
[Router2]
stp enable
4.
Configure PE3 as the root bridge and PE4 as the backup root bridge.
# Set the priority of PE3 to 0 in MSTP to ensure that PE3 functions as the root bridge.
[PE3]
stp root primary
# Set the priority of PE4 to 4096 in MSTP to ensure that PE4 functions as the backup root
bridge.
[PE4]
stp root secondary
Step 3
Configure the Layer 2 forwarding function on the CE and Router1 to Router3.
For details about the configuration, see the configuration files.
Step 4
Verify the configuration.
After the configurations are complete and network becomes stable, run the following commands
to verify the configuration. Router1 is used as an example.
l
Run the
shutdown
command on GE7/0/1 of Router2 to simulate an interface fault, and then
run the
display sep interface
command on Router3 to check whether GE7/0/2 of Router3
has switched from the Discarding state to the Forwarding state.
<Router3>
display sep interface gigabitethernet 7/0/2
SEP segment 1
----------------------------------------------------------------
Interface Port Role Neighbor Status Port Status
----------------------------------------------------------------
GE7/0/2 common up forwarding
----End
Configuration Files
l
Configuration file of Router1
#
sysname Router1
#
vlan batch 10 100
#
stp region-configuration
Huawei AR530&AR550 Series Industrial Switch Routers
Configuration Guide - Ethernet Switching
8 SEP Configuration
Issue 01 (2014-11-30)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
335