User's Manual
240
Run the following commands to configure the SSTP forward delay.
Command Purpose
spanning-tree sstp
forward-time
value Modifies the forward time of the SSTP mode.
no spanning-tree sstp forward-time
Resumes the default forward time, 15 seconds.
34.3.8 Setting the PortPriority
When a loop generates, STP will change the states of some ports to the blocking state to cut off the loop. You
can control whether to block a port by setting the port priority and the port path cost.
Run the following commands to set the port priority of SSTP:
Command Purpose
spanning-tree port-priority
value Sets the port priority in all modes.
spanning-tree sstp port-priority
value Modifies the port priority of the SSTP mode.
no spanning-tree sstp port-priority
Resumes the port priority to the default value,
128.
34.3.9 Value of the path cost of a port
Run the following commands to set the port path cost of SSTP.
Command Purpose
spanning-tree cost
value Sets the port priority in all modes.
spanning-tree sstp cost
value Modifies the port path cost in SSTP mode.
no spanning-tree sstp cost
Resumes the port path cost to the default value.
34.3.10 Monitoring the STP state
To monitor STP configuration and STP’s state, run the following commands in EXEC mode:
Command Purpose
show spanning-tree
Displays the state of STP in current mode.
show spanning-tree detail
Displays the detailed information about STP in
current mode.
show spanning-tree interface
Displays the information about a port in STP in
current mode.
34.3.11 Setting the SNMP Trap
You can monitor the change of STP in a switch remotely from the network management software of the host
by configuring the trap function of STP.
STP protocols support two types of traps: newRoot and topologyChange. When a switch changes from a non-
root to a root, the newRoot Trap message will be transmitted; when the topology change is detected, such as
a non-edge port is changed from the non-forwarding state to the forwarding state, the topologyChange Trap
message will be transmitted.
Note: