Configuring per-port per-VLAN spanning tree
Syntax
no spanning-tree pathcost < rapid-pvst | mstp > [ 8021d | 8021t | proprietary ]
Specify a standard to use when calculating the default pathcost.
Default: 8021t
All devices in the network should be configure to use same pathcost mode for proper functioning.
Syntax:
spanning-tree port <port-number> vlan <vid-list> path-cost [ auto | <1...200000000> ]
no spanning-tree port <port-number> vlan <vid-list> path-cost [ auto | <1...200000000> ]
Sets the path cost for a single port on the specified VLANs. If the port is a member of more than one VLAN, the
path-cost
applies only where the port has traffic for the VLANs specified.
Default: auto
Range: 1 - 200000000
The
no
form of the command returns
path-cost
to its default setting.
Syntax:
spanning-tree port <port-number> vlan <vid-list> priority <0-15> path-cost <auto> | <Path-Cost>
no spanning-tree port <port-number> vlan <vid-list> priority <0-15> path-cost <auto> | <Path-Cost>
Sets the port priority for the specified VLANs. The value is in the range of 0-240 divided into steps of 16 that are numbered 0 to 15. The default is step 16.
The per-port per-VLAN priority is used to help choose the root port for a switch on the specified VLAN if there are multiple links to the root switch.
Default: 8
Range 0 - 15
The
no
form of the command sets the priority to its default value.