![Huawei AR3200 Series Configuration Manual - Lan Download Page 204](http://html.mh-extra.com/html/huawei/ar3200-series/ar3200-series_configuration-manual-lan_169302204.webp)
Step 2
Run:
interface
interface-type interface-number
The view of the Ethernet interface participating in STP calculation is displayed.
Step 3
Run:
stp port priority
priority
The port priority is configured.
The default priority value of a port on a switching device is 128.
----End
7.3.6 Enabling STP/RSTP
After STP/RSTP is enabled, spanning trees are calculated.
Context
After STP/RSTP is enabled on a ring network, STP/RSTP immediately calculates spanning trees
on the network. Configurations on the switching device, such as the switching device priority
and port priority, will affect spanning tree calculation. Any change to the configurations may
cause network flapping. Therefore, to ensure rapid and stable spanning tree calculation, perform
basic configurations on the switching device and its ports, and enable STP/RSTP.
Procedure
Step 1
Run:
system-view
The system view is displayed.
Step 2
Run:
stp enable
STP/RSTP is enabled on the switching device.
By default, STP/RSTP is enabled on a router.
----End
7.3.7 Checking the Configuration
After basic STP/RSTP functions are configured, you can view the information such as the port
roles and port status to check the spanning tree calculation.
Prerequisites
All configurations for basic STP/RSTP functions are complete.
Procedure
l
Run the
display stp
[
interface
interface-typeinterface-number
] [
brief
] command to view
the spanning-tree status and statistics.
----End
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.
193