
123
View
System view
Default level
2: System level
Parameters
all
: Enables output of port state transition information for all MSTIs.
instance
instance-id
: Enables output of port state transition information for the specified MSTI. The
instance-id
argument ranges from 0 to 16, where 0 represents the CIST.
Description
Use the
stp
port-log
command to enable output of port state transition information for the specified MSTI
or all MSTIs.
Use the
undo stp
port-log
command to disable output of port state transition information for the specified
MSTI or all MSTIs.
This function is enabled by default.
Examples
# Enable output of 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/PDISC: Instance 2's GigabitEthernet1/0/1 has been
set to discarding state!
%Aug 16 00:49:41:856 2006 Sysname MSTP/3/PFWD: Instance 2's GigabitEthernet1/0/2 has been
set to forwarding state!
The output shows that in MSTI 2 the state of GigabitEthernet 1/0/1 has changed to discarding and that
of GigabitEthernet 1/0/2 has changed to forwarding.
stp priority
Syntax
stp
[
instance
instance-id
]
priority
priority
undo stp
[
instance
instance-id
]
priority
View
System view
Default level
2: System level
Parameters
instance
instance-id
: Sets the priority of the switch in a MSTI. The
instance-id
argument ranges from 0 to
16, where 0 represents the CIST.
priority
: Specifies the priority of the switch, in the range of 0 to 61440 in steps of 4096. You can set up
to 16 priority values, such as 0, 4096, 8192…, on the switch. The smaller the
priority
value, the higher
the priority of the switch.