R3303-HP 6600/HSR6600 Routers Layer 2 - LAN Switching Command Reference

73
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.
Examples
# In MSTP mode, set the priority of port GigabitEthernet 4/0/3 to 16 in MSTI 2.
<Sysname> system-view
[Sysname] interface GigabitEthernet 4/0/3
[Sysname-GigabitEthernet4/0/3] stp instance 2 port priority 16
Related commands
display stp
stp port-log
Use stp port-log to enable outputting port state transition information for the specified MSTI or all MSTIs.
Use undo stp port-log to disable outputting port state transition information for the specified MSTI or all
MSTIs.
Syntax
stp port-log instance { instance-id | all }
undo stp port-log instance { instance-id | all }
Views
System view
Default command level
2: System level
Parameters
instance instance-id: Specifies an MSTI. The value range for this argument is 0 to 31. The value 0
represents the CIST. To enable or disable outputting port state transition information in STP or RSTP mode,
specify instance 0.
all: Specifies all MSTIs.
Examples
# In MSTP mode, enable outputting port state transition information for MSTI 2.
<Sysname> system-view
[Sysname] stp port-log instance 2
%Aug 16 00:49:41:856 2006 Sysname MSTP/3/MSTP_DISCARDING: Instance 2's
GigabitEthernet4/0/1 has been set to discarding state!
%Aug 16 00:49:41:856 2006 Sysname MSTP/3/MSTP_DISCARDING: Instance 2's
GigabitEthernet4/0/2 has been set to forwarding state!
The output shows that GigabitEthernet 4/0/1 in MSTI 2 transited to the discarding state and
GigabitEthernet 4/0/2 in MSTI 2 transited to the forwarding state.
stp priority
Use stp priority to set the priority of the device.
Use undo stp priority to restore the default priority.