Administrator Guide

Table Of Contents
Layer 2 Switching Commands 780
spanning-tree port-priority (Interface
Configuration)
Use the spanning-tree port-priority command in Interface Configuration
mode to configure the priority value of an edge-port or point-to-point
interface to allow the operator to select the relative importance of the
interface in the selection process for forwarding. Set this value to a lower
number to prefer an operationally enabled interface for forwarding of frames.
Use the no form of the command to return the priority to the default value.
Syntax
spanning-tree [vlan
vlan-id
] port-priority
priority
no spanning-tree [vlan
vlan-id
] port-priority
vlan-id
— An optional parameter specifying the VLAN to which the
priority applies when the port is configured as an edge-port. Range 1-4093.
priority
The priority of the edge-port or point-to-point link in the
forwarding port selection process. Range is 0 to 240 in increments of 16.
Default Configuration
The default port-priority for IEEE STP is 128.
Command Mode
Interface Configuration mode
User Guidelines
If the VLAN parameter is given, the priority is configured only for the
selected VLANs (applies only when pvst or rapid-pvst mode is selected).
Configuration without the VLAN parameter configures the port priority for
RSTP, STP-PV, and RSTP-PV.
If an interface is configured with both the spanning-tree vlan
vlan-id
port-
priority
priority
command and the spanning-tree port-priority
priority
command, the spanning-tree vlan
vlan-id
port-priority
priority
value is used
as the port priority.
If a VLAN parameter is provided, the VLAN must have been previously
configured or an error is thrown.
2CSNXXX_SWUM204.book Page 780 Monday, January 25, 2016 1:25 PM