-
Notifications
You must be signed in to change notification settings - Fork 0
STP Configuration
This section describes how to configure STP on the device, using one of the following methods:
To enable STP on a bridge, run the following command:
$ ip link set dev br0 type bridge stp_state 1
By default, STP is disabled.
- To disable STP on a bridge, set
stp_stateto “0”. - To show the current
stp_statevalue, run the following command:
$ ip -d link show dev br0 | grep stp_state
In addition, to show extended STP configuration on the bridge (bridge stp state, port stp state, …), you can use brctl utility.
$ brctl showstp br0
You can use brctl to configure the following spanning tree protocol parameters. For more information on these parameters, see the IEEE 802.1d specification. See brctl man for details on bridge STP configurations:
- Bridge priority
- Path priority and cost
- Forwarding delay
- Hello time
- Max age
RSTP support requires user-level daemon mstpd, running in RSTP mode. The mstpd daemon is an open source project (https://github.com/mstpd/mstpd).
The mstpctl utility, provided by the mstpd service, configures STP.
After the bridge is created and STP is enabled (described above), you can switch the bridge mode from STP to RSTP using the mstpctl application. See mstpctl man for more information.
- To switch the bridge mode from STP to RSTP:
$ mstpctl setforcevers br0 rstp - To show information about the bridge:
$ mstpctl showbridge - To show port information:
$ mstpctl showport br0 sw1p5
- STP is configured using standard Linux command line tools (ip bridge, brctl).
- RSTP requires a user-level daemon mstpd which should be run in RSTP mode.
mstpctlis a utility to configure mstpd. mstpd(mstpctl) is not a standard Linux utility.
Build and Installation
- Compilation
- Installation
System Configurations
- Kernel Install & Upgrade
- Firmware Upgrade
Network Configurations
- Switch Port
- Layer 2
- Layer 3
- Quality of Service (QoS)
- Control Plane Policing
- Traffic Policing
- Priority Mapping
- Access Control Lists (ACL)
- ACL
- Shared Block Support
- Chain Templates Support
- Multi-chain Support
- Network Address Translation (NAT)
- Debugging Tools and and Methods
- Resources and Releases