Spanning-Tree Operation

 

 

 

 

 

 

802.1D Spanning-Tree Protocol (STP)

 

 

 

 

N o t e

 

 

Executing spanning-treealone enables STP. Executing spanning-tree with one

 

 

 

or more of the above “STP Operating Parameters” does not enable STP. It only

 

 

 

configures the STP parameters (regardless of whether STP is actually running

 

 

 

(enabled) on the switch).

 

 

 

 

 

Syntax:

spanning-tree

 

 

 

 

 

 

 

 

 

 

 

priority < 0 - 65355 >

 

 

 

 

maximum-age < 6 - 40 seconds >

 

 

 

 

hello-time < 1 - 10 seconds >

 

 

 

 

forward-delay < 4 - 30 seconds >

 

 

 

Default:

Refer to table 5-3, above.

 

 

 

For example, to configure a maximum-ageof 30 seconds and a hello-timeof 3

 

 

 

seconds for STP:

 

 

 

ProCurve(config)# spanning-tree maximum-age 30 hello-time 3

 

 

 

Reconfiguring Per-Port STP Operation on the Switch.

 

 

 

Syntax: spanning-tree < port-list > path-cost < 1 - 65535 > priority < 0 - 255 > mode

 

 

 

< norm fast >

 

 

 

 

 

 

Enables STP (if not already enabled) and configures the per-

 

 

 

 

port parameters listed in table 5-4.

 

 

 

Table 5-4.

Per-Port STP Parameters

 

 

 

 

 

 

 

 

 

 

 

Name

Default

Range

Function

 

 

 

 

 

 

 

 

 

 

path-cost

Ethernet: 100

1 - 65535

Assigns an individual port cost that the switch uses

 

 

 

 

10/100Tx: 10

 

to determine which ports are the forwarding ports.

 

 

 

 

100 Fx: 10

 

 

 

 

 

 

Gigabit: 5

 

 

 

 

 

 

 

 

 

 

 

 

priority

128

0 - 255

Used by STP to determine the port(s) to use for

 

 

 

 

 

 

forwarding. The port with the lowest number has

 

 

 

 

 

 

the highest priority.

 

 

 

 

 

 

 

 

 

 

mode

norm

norm

Specifies whether a port progresses through the

 

 

 

 

 

- or ­

listening, learning, and forwarding (or blocking)

 

 

 

 

 

fast

states (“norm” mode) or transitions directly to the

 

 

 

 

 

- or ­

forwarding state (“fast” mode).

 

 

 

 

 

uplink

• For information on when to use Fast mode, see

 

 

 

 

 

 

“STP Fast Mode” on page 5-30.)

• For information on Uplink mode, see “Fast- Uplink Spanning Tree Protocol (STP)” on page 5-31

5-29