147
priority: Specifies the port priority in the range of 0 to 240 in increments of 16 (as in 0, 16, 32).
Usage guidelines
The smaller the value, the higher the port priority. If all ports on your device use the same priority
value, the port priority depends on the port index. The smaller the index, the higher the priority.
If this command is configured in Layer 2 Ethernet interface view, it takes effect only on that interface.
If this command is configured in Layer 2 aggregate interface view, it takes effect only on the
aggregate interface.
If this command is configured on a member port in an aggregation group, it takes effect only after the
port leaves the aggregation group.
If you do not specify an MSTI or VLAN, this command configures the priority of the ports in the MSTP
CIST or in the STP or RSTP spanning tree.
Examples
# In MSTP mode, set the port priority of GigabitEthernet 1/0/1 to 16 in MSTI 2.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] stp instance 2 port priority 16
# In PVST mode, set the port priority of GigabitEthernet 1/0/1 to 16 in VLAN 2.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] stp vlan 2 port priority 16
Related commands
display stp
stp port shutdown permanent
Use stp port shutdown permanent to disable the device from reactivating edge ports shut
down by BPDU guard.
Use undo stp port shutdown permanent to restore the default.
Syntax
stp port shutdown permanent
undo stp port shutdown permanent
Default
The device reactivates an edge port shut down by BPDU guard after the port status detection timer
expires.
Views
System view
Predefined user roles
network-admin
Usage guidelines
This command takes effect only on edge ports shut down by BPDU guard after this command is
configured. The device does not bring up the shutdown ports if you execute the
undo stp port
shutdown permanent
command. To bring up these ports, you must use the undo shutdown
command.