68
If the physical link to which the port connects is not a point-to-point link but you set it to be one, your
configuration may bring a temporary loop.
Related commands:
display stp
.
Examples
# Configure the link connecting GigabitEthernet 1/0/1 as a point-to-point link.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] stp point-to-point force-true
stp port priority
Syntax
stp
[
instance
instance-id
]
port priority
priority
undo stp
[
instance
instance-id
]
port priority
View
Ethernet interface view, WLAN mesh interface view
Default level
2: System level
Parameters
instance
instance-id
: Sets the priority of the ports in a particular MSTI. The
instance-id
argument ranges
from 0 to 15, where 0 represents the CIST.
priority
: Specifies a port priority, ranging from 0 to 240 in steps of 16 (for example, 0, 16, 32…).
Description
Use
stp port priority
to set the priority of the ports.
Use
undo stp port priority
to restore the default.
By default, the port priority is 128.
To set the priority of an MSTP port in a specific MSTI, use this command with the MSTI specified. To set
the priority of an MSTP port in the CIST or an STP/RSTP port, use this command without specifying any
MSTI.
Port priority affects the role of a port in a spanning tree.
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.
Related commands:
display stp
.
Examples
# In MSTP mode, set the priority of port 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