GSWB

CHAPTER 8 CLI Operations

Action: Specify the correct parameter.

8.2.8.6spanning-tree port-priority

This command sets the port priority. The lower the priority value, the higher the priority. If the root path cost is the same for multiple bridges on the same branch line, the port with the lowest value becomes the designated port for relays on the branch line.

When making this setting for a port-channel port, no setting is required for a physical link that is part of the target port-channel. The contents of settings made for such links are not reflected.

The setting for a physical link in the port-channel is reflected in the physical link at the time the link is removed from the port-channel.

(1)Synopsis

Sets the port priority

spanning-tree port-priority <priority>

Resets the port priority to the default value no spanning-treeport-priority

(2)Options

z<priority>

Specifies the port priority. The setting range is 0 to 255, and the default value is 128.

(3)Command mode

Interface

(4)See also spanning-tree

spanning-tree cost

(5)Examples

Increases the priority for GigabitEthernet 0/2 so that the forwarding state is entered in the event that a loop forms

8-60

C122-E003-02EN