interface Ethernet0/0/1
#
interface Ethernet0/0/2
stp disable
#
interface Ethernet0/0/3
stp disable
#
interface Ethernet0/0/4
stp instance 0 cost 200000
#
return
l
Configuration file of SwitchD
#
sysname SwitchD
#
stp mode stp
stp pathcost-standard legacy
#
interface Ethernet0/0/1
#
interface Ethernet0/0/2
stp disable
#
interface Ethernet0/0/3
stp disable
#
interface Ethernet0/0/4
stp instance 0 cost 200000
#
return
6.8.2 Example for Configuring Basic RSTP Functions
Networking Requirements
On a complex network, multiple physical links are often deployed between two devices for link
redundancy (one as the active link and the others as standby links). Redundant links may cause
loops on the network, and loops will result in broadcast storms and damage MAC address entries.
RSTP can be deployed on a network to eliminate loops by blocking some ports. As shown in
, loops exist on the network, and RouterA, SwitchA, SwitchB, SwitchC and SwitchD
are all running RSTP. These devices exchange BPDUs to discover the loops and block
appropriate ports to trim the ring topology into a loop-free tree topology. The tree topology
prevents infinite looping of packets on the network, which in turn helps improve packet
processing performance.
Huawei AR530&AR550 Series Industrial Switch Routers
Configuration Guide - Ethernet Switching
6 STP/RSTP Configuration
Issue 01 (2014-11-30)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
216