105
[Sysname] interface gigabitethernet 1/0/3
[Sysname-GigabitEthernet1/0/3] stp instance 2 port priority 16
stp port-log
Syntax
stp
port-log
{
all
|
instance
instance-id
}
undo
stp
port-log
{
all
|
instance
instance-id
}
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 15, 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