Chapter 47 Configuration Mode Commands
ES-4124 User’s Guide
394
An example using spanning-tree command is shown next.
• Enable STP on the Switch.
• Set the bridge priority of the Switch to 0.
• Set the Hello Time to 4, Maximum Age to 20 and Forward Delay to 15 on the Switch.
• Enable STP on port 5 with a path cost of 150.
• Set the priority for port 5 to 20.
47.4 no Command Examples
These are the commonly used command examples that belong to the no group of commands.
The
no group commands are commands which are preceded by keyword no. This command
negates the intended action of the command. In most cases the
no command disables, resets or
clears settings. There are cases, however, where the
no command can activate features. This
section shows some uses of these commands.
47.4.1 Disable Commands
Use the no command to disable features on the Switch.
Syntax:
no spanning-tree
no mirror-port
Disables STP on the Switch.
forward-delay <4-
30>
= Specifies the maximum time (in seconds) the Switch will wait
before changing states. This delay is required because every
Switch must receive information about topology changes before
it starts to forward frames. In addition, each port needs time to
listen for conflicting information that would make it return to a
blocking state; otherwise, temporary data loops might result.
<port-list> path-
cost <1-65535>
= Enables STP on the specified ports.
Specifies the cost of transmitting a frame on to a LAN through
that port. It is assigned according to the speed of the bridge.
<port-list>
priority <0-255>
= Specifies the priority for each port.
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.
<port-list>
treeIndex <1-2>
= Specifies which STP configuration these ports will participate
in. (
mrstp command only).
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