Configuring Spanning Tree Protocol (STP)

Displaying STP Information

You can display the following STP information:

All the global and interface STP settings

STP state information for an individual interface

STP state information for a port-based VLAN

Displaying STP Information for an Entire Device

To display STP information for an entire device, use either of the following methods.

USING THE CLI

To display STP information, enter the following command at any level of the CLI:

HP9300(config)# show span

Global STP Parameters:

VLAN

Root

 

 

Root Root Prio Max He-

Ho- Fwd Last

Chg

Bridge

ID

ID

 

 

Cost

Port rity

Age llo

ld

dly Chang

cnt

Address

 

 

 

 

 

 

Hex

sec

sec

sec

sec

sec

 

 

1

800000e052a9bb40 0

Root 8000 20

2

2

15

0

6

00e052a9bb40

Port

STP Parameters:

 

 

 

 

 

 

 

 

 

 

VLAN

Port

Prio

Path

State

 

Fwd

Design

Design

 

Design

ID

Num

rity

Cost

 

 

Trans

Cost

Root

 

 

Bridge

 

 

Hex

 

 

 

 

 

 

 

 

 

 

 

1

3/1

80

19

ENABLED

 

2

0

 

800000e052a9bb40

800000e052a9bb40

1

3/2

80

0

DISABLED

0

0

 

0000000000000000

0000000000000000

1

3/3

80

0

DISABLED

0

0

 

0000000000000000

0000000000000000

1

3/4

80

0

DISABLED

0

0

 

0000000000000000

0000000000000000

1

3/5

80

0

DISABLED

0

0

 

0000000000000000

0000000000000000

1

3/6

80

0

DISABLED

0

0

 

0000000000000000

0000000000000000

1

3/7

80

0

DISABLED

0

0

 

0000000000000000

0000000000000000

1

3/8

80

0

DISABLED

0

0

 

0000000000000000

0000000000000000

1

3/9

80

0

DISABLED

0

0

 

0000000000000000

0000000000000000

1

3/10

80

0

DISABLED

0

0

 

0000000000000000

0000000000000000

Syntax: show span [vlan <vlan-id>] [pvst-mode] [<num>]

The vlan <vlan-id> parameter displays STP information for the specified port-based VLAN.

The pvst-modeparameter displays STP information for the device’s Per VLAN Spanning Tree (PVST+) compatibility configuration. See “PVST/PVST+ Compatibility” on page 5-20.

The <num> parameter displays only the entries after the number you specify. For example, on a device with three port-based VLANs, if you enter 1, then information for the second and third VLANs is displayed, but information for the first VLAN is not displayed. Information is displayed according to VLAN number, in ascending order. The entry number is not the same as the VLAN number. For example, if you have port-based VLANs 1, 10, and 2024, then the command output has three STP entries. To display information for VLANs 10 and 2024 only, enter show

span 1.

5 - 7