42
Time.
- “w” is the week number in the month. Its value is 1~5.
- “x” is the day number in the week. Its value is 0~6.
- “y” is the month number. Its value is 1~12.
- “z” is the hour number in the day. Its value is 0~23.
30 spanning-tree command
This command is used to configure spanning tree protocol of the switch.
Entering “spanning-tree”, the sub-commands will be shown.
(config)# spanning-tree ?
compatible Compatible with old STP
forward-time Global STA forward time configuration. Range: <4-30
seconds>
hello-time Global STA hello time configuration. Range: <1-10
seconds>
max-age Global STA maximum age configuration. Range <6-40
seconds>
priority Specifies spanning tree priority
<cr>
spanning-tree command is used to enable spanning tree protocol function.
And no spanning-tree command is used to disable it.
spanning-tree compatible command is used to change its operation to 802.1D
STP instead of 802.1w RSTP. And no spanning-tree complatible command
is used to set it back.
spanning-tree forward-time x command is used to set the forwarding delay of
spanning tree operation. It is the maximum waiting time before changing
states. This delay is required because every device must receive information
about topology changes before it starts to forward frames. “x” is the delay time,
and its valid value is 4-30 in seconds
spanning-tree hello-time x command is used to set the period to send
spanning tree maintenance packet if the switch is the root of spanning tree. “x”
is the period time, and its valid value is 1-10 in seconds.
spanning-tree max-age x command is used to set the spanning tree aging
time if no spanning tree maintenance packet is received. “x” is the time, and its
valid value is 6-40 in seconds.
spanning-tree priority x command is used to set the bridge priority of the
switch. Bridge priority is for selecting the root device, root port, and designated
port. The device with the highest priority (lowest value) becomes the STA root
device. If all devices have the same priority, the device with the lowest MAC
address will then become the root device. “x” is the priority, and its valid value
is 0-61440.
The settings of spanning tree on port are done in “interface” command. The
settings here are for bridge only.
31 storm-control command