104
If the physical link to which the port connects is not a point-to-point link and you manually set it to be one,
your configuration may cause temporary loops.
Related commands:
display stp
.
Examples
# Configure the link connecting GigabitEthernet 1/0/3 as a point-to-point link.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/3
[Sysname-GigabitEthernet1/0/3] 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
Layer 2 Ethernet interface view, port group view, Layer 2 aggregate interface view
Default level
2: System level
Parameters
instance
instance-id
: Sets the priority of the current port(s) 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 (0, 16, 32…, for example).
Description
Use the
stp port priority
command to set the priority of the port(s).
Use the
undo stp port priority
command to restore the system default.
Port priority affects the role of a port in an MSTI.
By default, the port priority is 128.
Configured in Layer 2 Ethernet interface view, the setting takes effect on the current interface only.
Configured in port group view, the setting takes effect on all ports in the port group.
Configured in Layer 2 aggregate interface view, the setting takes effect only on the aggregate interface.
Configured on a member port in an aggregation group, the setting takes effect only after the port leaves
the aggregation group.
Setting different priorities for the same port in different MSTIs allows VLAN traffic flows to be forwarded
along different physical links to achieve VLAN-based load balancing.
When the priority of a port is changed in an MSTI, MSTP will re-compute the role of the port and initiate
a state transition in the MSTI.
Related commands:
display stp
.
Examples
# Set the priority of port GigabitEthernet 1/0/3 in MSTI 2 to 16.
<Sysname> system-view