A SERVICE OF

logo

ES-2048 User’s Guide
252 Chapter 33 Configuration Mode Commands
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.
33.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.
33.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.
Disables port mirroring on the switch.
<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.
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