Switch 7700 Command reference Guide, v2.0

Table Of Contents
332 CHAPTER 8: USING STP COMMANDS
Example
Set the path cost of Ethernet5/0/3 on STI 2 to 400 in system view:
[SW7700]stp interface Ethernet5/0/3 instance 2 cost 400
stp interface instance
port priority
Syntax
stp interface interface-list instance instance-id port priority
priority
undo stp interface interface-list instance instance-id port priority
View
System view
Parameter
interface-list: Ethernet port list, containing multiple Ethernet ports and
expressed as
interface _list = { { interface_type interface_num |
interface_name } [ to { interface_type interface_num | interface_name } ]
}&<1-10>. For detail descriptions of
interface_type, interface_num and
interface_name parameters, refer to the corresponding descriptions in Port
Command Manual. &<1-10> means that the preceding parameters can be
entered up to 10 times.
instance instance-id: Specifies the spanning tree instance ID, ranging from 0
to 48. The Instance 0 represents CIST.
port priority priority: Specifies the port priority, ranging from 0 to 240 with
a step length of 16, for example, 0, 16 and 32. By default, the port has a priority
of 128 on every STI.
Description
Use the stp interface instance port priority command to configure the
priority of the specified port on the specified STI in system view.
Use the undo stp interface instance port priority command to restore
the default priority.
You may specify the instance-id parameter as 0 to configure CIST priority of the
port. The port priority has effect on the port role selection. A port can be
configured with different priorities on different MSTIs. Thus the traffic from
different VLANs can run over different physical links, thereby implementing the
VLAN-based load-balancing. MSTP will recalculate the port role and transit its
state, upon the port priority changes.
Related command: stp instance port priority.
Example
Set the priority of Ethernet5/0/3 on STI 2 to 16 in system view.
[SW7700]stp interface Ethernet5/0/3 instance 2 port priority 16
stp interface
loop-protection
Syntax
stp interface interface-list loop-protection