spanning-tree port-priority




spanning-tree [vlan stp-list] port-priority port-priority

no spanning-tree [vlan stp-list] port-priority

Syntax Description:

vlan stp-list

(Optional) List of spanning-tree instances. Each spanning-tree instance is
associated with a VLAN ID. Valid IDs are from 1 to 1001. Enter each VLAN ID
separated by a space. Do not enter leading zeroes. Ranges are not supported.


Number from 0 to 255. The lower the number, the higher the priority.


Command Description:

Use the spanning-tree port-priority interface configuration command to configure a port priority, which is used when two switches tie for position as the root switch. Use the no form of this command to return to the default value.

If the variable stp-list is omitted, the command applies to the STP instance associated with VLAN 1.

You can set the port priority on a VLAN that has no ports assigned to it. The setting takes effect when you assign ports to the VLAN.


The following example shows how to increase the likelihood that the spanning-tree instance 20 is chosen as the root switch on port fa0/2:

Switch(config)#interface fa0/2

Switch(config-if)#spanning-tree vlan 20 port-priority 0

You can verify the previous commands by entering the show spanning-tree command in privileged EXEC mode.


Related commands:
show spanning-tree

� Cisco Systems, Inc. 2001, 2002, 2003
World Wide Education

Converted from CHM to HTML with chm2web Pro 2.85 (unicode)