Configuring Spanning Tree Protocol (STP)

To verify that single STP is in effect, enter the following command at any level of the CLI:

HP9300(config) show span

Syntax: show span [vlan <vlan-id>]

Here is an example of the information displayed by this command. Notice that no VLAN IDs are listed in the VLAN ID column. For STP, all ports are members of VLAN 4094, the single STP VLAN. When you enable single STP, all the ports in the single spanning tree, regardless of other VLAN membership, are configured as members of port­ based VLAN 4094. This VLAN is used to implement the single spanning tree. VLAN 4094 is used only by single spanning tree. A port can be a member of VLAN 4094 and another port-based VLAN at the same time without being tagged. All ports in VLAN 4094 share a common STP domain, but for all other traffic, the ports remain within the separate Layer 2 broadcast domains established by the port-based VLANs.

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

 

 

 

800000e052f04f00 0

Root 8000 20

2

2

15

0

0

00e052f04f00

Port STP Parameters:

 

 

 

 

 

 

 

 

 

 

VLAN Port

Prio

Path State

 

Fwd

Design

Design

 

Design

ID

Num

rity

Cost

 

 

Trans

Cost

Root

 

 

Bridge

 

 

Hex

 

 

 

 

 

 

 

 

 

 

 

 

1/1

80

0

DISABLED

0

0

 

0000000000000000

0000000000000000

 

1/2

80

0

DISABLED

0

0

 

0000000000000000

0000000000000000

 

1/3

80

0

DISABLED

0

0

 

0000000000000000

0000000000000000

 

1/4

80

0

DISABLED

0

0

 

0000000000000000

0000000000000000

.

 

 

 

 

 

 

 

 

 

 

 

 

 

.

some lines

omitted for brevity

 

 

 

 

 

 

 

.

 

 

 

 

 

 

 

 

 

 

 

 

 

To display VLAN information, including the STP state of each VLAN, enter the following command at any CLI level:

HP9300(config)# show vlan

Syntax: show vlan [<vlan-id> ethernet <portnum>]

HP9300(config)# show vlan

Total PORT-VLAN entries:

3

 

 

 

 

 

 

 

Maximum PORT-VLAN entries: 8

 

 

 

 

 

 

 

legend: [S=Slot]

 

 

 

 

 

 

 

 

 

 

PORT-VLAN

1, Name DEFAULT-VLAN,

Priority

level0, in single spanning tree domain

Untagged

Ports:

(S1)

1

2

3

4

5

6

7

8

 

Untagged

Ports:

(S2)

1

2

3

4

5

6

7

8

9 10 11 12 13 14 15 16

Untagged

Ports:

(S2)

17

18

19

20

21

22

23

24

 

Untagged

Ports:

(S4)

1

2

3

4

5

6

7

8

9 10 11 12 13 14 15 16

Untagged

Ports:

(S4)

17

18

19

20

21

22

23

24

 

Untagged

Ports:

(S6)

1

2

3

4

5

6

7

8

9 10 11 12 13 14 15 16

Untagged

Ports:

(S6)

17

18

19

20

21

22

23

24

 

Tagged

Ports: None

 

 

 

 

 

 

 

 

 

SINGLE-SPANNING-TREE-VLAN, Name

Single-spanning-tree-vlan, Priority level0, in

single spanning tree domain

 

 

 

 

 

 

 

Untagged

Ports:

(S1)

1

2

3

4

5

6

7

8

 

Untagged

Ports:

(S2)

1

2

3

4

5

6

7

8

9 10 11 12 13 14 15 16

Untagged

Ports:

(S2)

17

18

19

20

21

22

23

24

 

Untagged

Ports:

(S4)

1

2

3

4

5

6

7

8

9 10 11 12 13 14 15 16

5 - 19