ZyXEL Communications ES-2024PWR Switch User Manual


 
Chapter 56 STP and RSTP Commands
Ethernet Switch CLI Reference Guide
202
56.2 Command Examples
This example configures STP in the following ways:
1 Enables STP on the Switch.
2 Sets the bridge priority of the Switch to 0.
3 Sets the Hello Time to 4, Maximum Age to 20 and Forward Delay to 15.
4 Enables STP on port 5 with a path cost of 150.
5 Sets the priority for port 5 to 20.
This example shows the current STP settings.
spanning-tree <port-list>
priority <0-255>
Sets the priority for the specified ports. Priority decides which
port should be disabled when more than one port forms a
loop in a Switch. Ports with a higher priority numeric value are
disabled first.
C13
spanning-tree help Provides more information about the specified command. C 13
Table 118 spanning-tree Command Summary (continued)
COMMAND DESCRIPTION M P
sysname(config)# spanning-tree
sysname(config)# spanning-tree priority 0
sysname(config)# spanning-tree hello-time 4 maximum-age 20 forward-delay
--> 15
sysname(config)# spanning-tree 5 path-cost 150
sysname(config)# spanning-tree 5 priority 20
sysname# show spanning-tree config
Bridge Info:
(a)BridgeID: 8000-001349aefb7a
(b)TimeSinceTopoChange: 9
(c)TopoChangeCount: 0
(d)TopoChange: 0
(e)DesignatedRoot: 8000-001349aefb7a
(f)RootPathCost: 0
(g)RootPort: 0x0000
(h)MaxAge: 20 (seconds)
(i)HelloTime: 2 (seconds)
(j)ForwardDelay: 15 (seconds)
(k)BridgeMaxAge: 20 (seconds)
(l)BridgeHelloTime: 2 (seconds)
(m)BridgeForwardDelay: 15 (seconds)
(n)TransmissionLimit: 3
(o)ForceVersion: 2