Configuring Leaf Nodes 227
On an MSTP-compliant device, a port can have different priorities in different MST
instances, and the same port can play different roles in different MST instances, so
that data of different VLANs can be propagated along different physical paths,
thus implementing per-VLAN load balancing. You can set port priority values
based on the actual networking requirements.
Configuration procedure
Follow these steps to configure the priority of a port or a group of ports:
n
■ When the priority of a port is changed, MSTP will re-calculate the role of the
port and initiate a state transition.
■ Generally, a lower configured value priority indicates a higher priority of the
port. If you configure the same priority value for all the Ethernet ports on a
device, the specific priority of a port depends on the index number of that port.
Changing the priority of an Ethernet port triggers a new spanning tree
calculation process.
Configuration example
# Set the priority of port GigabitEthernet 1/0/1 to 16 in MST instance 1.
<Sysname> system-view
[Sysname] interface GigabitEthernet 1/0/1
[Sysname-GigabitEthernet1/0/1] stp instance 1 port priority 16
Configuring Whether
Ports Connect to
Point-to-Point Links
Refer to “Configuring Whether Ports Connect to Point-to-Point Links” on page
221 in the section about root bridge configuration.
Configuring the Mode a
Port Uses to
Recognize/Send MSTP
Packets
Refer to “Configuring the Mode a Port Uses to Recognize/Send MSTP Packets” on
page 222 in the section about root bridge configuration.
Enabling Output of Port
State Transition
Information
Refer to “Enabling the Output of Port State Transition Information” on page 223
in the section about root bridge configuration.
To do… Use the command… Remarks
Enter system view system-view -
Enter Ethernet
interface view
or port group
view
Enter Ethernet
interface view
interface interface-type
interface-number
Required
Use either command.
Configurations made in
Ethernet interface view will
take effect on the current
port only; configurations
made in port group view will
take effect on all ports in the
port group.
Enter port
group view
port-group { manual
port-group-name |
aggregation agg-id }
Configure the port priority stp [ instance instance-id ]
port priority priority
Optional
128 for all Ethernet ports by
default.