Configuring IEEE 802.1w Rapid Spanning Tree Protocol
- Enter the global configuration mode.
- Enable IEEE 802.1w on a
port-based VLAN or on an individual port.
When configured on a port-based VLAN, changing the IEEE 802.1w state in a VLAN affects only that VLAN, including all the ports specified in the VLAN.
The
spanning-tree 802-1worspanning-tree single 802-1wcommand must be used to initially enable IEEE 802.1w on ports. Both commands enable IEEE 802.1w on all ports that belong to the VLAN or to the single spanning tree.Note: When you enable or disable IEEE 802.1w within a port-based VLAN, the setting overrides the global setting. Thus, you can enable IEEE 802.1w for the ports within a port-based VLAN even when IEEE 802.1w is globally disabled, or disable the ports within a port-based VLAN when IEEE 802.1w is globally enabled. If you change the IEEE 802.1w state of the LAG virtual interface in a LAG, the change affects all ports in that LAG. - Change IEEE 802.1w bridge
parameters by using the max-age, hello-time, and priority
keywords.The changes are applied to individual ports on the bridge. If you have configured a port-based VLAN on the device, you can configure the parameters only at the configuration level for individual VLANs.
- Change IEEE 802.1w port
parameters by using the
path-costandprioritykeywords.
The following example shows how to enable IEEE 802.1w RSTP on a port-based VLAN, VLAN-10. Bridge and port parameters are configured.
device# configure terminal device(config)# vlan 10 device(config-vlan-10)# spanning-tree 802-1w device(config-vlan-10)# spanning-tree 802-1w priority 0 hello-time 3 max-age 10 device(config-vlan-10)# spanning-tree 802-1w ethernet 1/1/1 path-cost 15 priority 64
The following example shows how to enable IEEE 802.1w RSTP port parameters on an individual port, Ethernet 1/1/1, and LAG 45, respectively.
device# configure terminal device(config)# interface ethernet 1/1/1 device(config-if-e1000-1/1/1)#spanning-tree 802-1w admin-edge-port
device# configure terminal device(config)# interface lag 45 device(config-lag-if-lg45)# spanning-tree 802-1w admin-pt2pt-mac enable