
Step 2
Run:
stp bridge-diameter
diameter
The network diameter is configured.
By default, the network diameter is 7.
l
RSTP uses a single spanning tree instance on the entire network. As a result, performance
deterioration cannot be prevented when the network scale grows. Therefore, the network
diameter cannot be larger than 7.
l
It is recommended that you run the
stp bridge-diameter
diameter
command to set the
network diameter. Then, the switching device calculates the optimal Forward Delay period,
Hello timer value, and Max Age timer value based on the set network diameter.
Step 3
Run:
stp timer-factor
factor
The timeout period for waiting for BPDUs from the upstream device is set.
By default, the timeout period is 9 times the Hello timer value.
Step 4
(Optional) If the current device is at the edge of a network, run both or either of the following
commands as needed:
l
To configure all ports on the devices as edge ports, run:
stp edged-port default
By default, a port is a non-edge port.
After ports on a network edge device are configured as edge ports, the ports no longer
participate in spanning tree calculation. This speeds up network topology convergence and
improves network stability.
l
To configure all ports on the devices as BPDU filter ports, run:
stp bpdu-filter default
By default, a port is a non-BPDU filter port.
After ports on a network edge device are configured as BPDU filter ports, the ports no longer
process or send BPDUs.
WARNING
After the
stp bpdu-filter default
and
stp edged-port default
commands are run in the system
view, all ports on the device no longer actively send BPDUs or negotiate with directly-connected
ports; instead, all the ports are in the Forwarding state. This may lead to a loop on the network,
causing broadcast storms. Exercise caution when running these commands.
Step 5
(Optional) To set the Forward Delay period, Hello timer, and Max Age timer, perform the
following operations:
l
Run the
stp timer forward-delay
forward-delay
command to set the Forward Delay timer.
The default Forward Delay timer of a switching device is 1500 centiseconds.
l
Run the
stp timer hello
hello-time
command to set the Hello timer.
The default Hello timer of a switching device is 200 centiseconds.
l
Run the
stp timer max-age
max-age
command to set the Max Age timer.
Huawei AR3200 Series Enterprise Routers
Configuration Guide - LAN
7 STP/RSTP Configuration
Issue 02 (2012-03-30)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
198