spanning-tree 802-1w ethernet

Enables the spanning-tree 802.1w port commands on Ethernet ports.
Syntax
spanning-tree 802-1w [ single ] ethernet stackid/slot/port [ admin-edge-port ] [ admin-pt2pt-mac ] [ force-migration-check ] [ path-cost number ] [ priority number ] [ disable ]
no spanning-tree 802-1w [ single ] ethernet stackid/slot/port [ admin-edge-port ] [ admin-pt2pt-mac ] [ force-migration-check ] [ path-cost number ] [ priority number ] [ disable ]
Command Default

The 802.1w port parameters are pre-configured with default values.

Parameters
single
Configures a Single STP.
ethernet stackid/slot/port
Specifies the Ethernet port on which you want to configure the 802.1w parameters.
admin-edge-port
Enables the port as an edge port in the domain.
admin-pt2pt-mac
Enables a port that is connected to another port through a point-to-point link. The point-to-point link increases the speed of convergence. This parameter, however, does not auto-detect whether or not the link is a physical point-to-point link.
force-migration-check
Forces the specified port to sent one RST BPDU. If only STP BPDUs are received in response to the send RST BPDU, then the port will return to sending STP BPDUs.
path-cost number
Configures the cost of the port path to the root bridge. 802.1w prefers the path with the lowest cost. The path cost ranges is from 1 through 20,000,000.
priority number
Sets the priority for the port. The priority value ranges from 0 through 240, in increments of 16. The default value is 128.
disable
Disables 802.1w for the interface on the VLAN.
Modes

Global configuration mode

VLAN configuration mode

Usage Guidelines

Configuring the parameters is optional. All parameters have default values. Additionally, all values will be globally applied to all ports on the system or on the port-based VLAN for which they are defined.

The no form of the command disables the spanning tree on a VLAN

Examples

The following example shows the spanning tree configuration for the specified Ethernet port.

device(config)# vlan 200
device(config-vlan-200)# spanning-tree 802-1w ethernet 1/1/3 admin-edge-port admin-pt2pt-mac force-migration-check path-cost 5 priority 10