ES-2048 User’s Guide

<port-list> path-

= Enables STP on the specified ports.

cost <1-65535>

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>

= Specifies the priority for each port.

priority <0-255>

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.

An example using spanning-treecommand 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.

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

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.

252

Chapter 33 Configuration Mode Commands