462 Configuring and managing spanning tree protocol
NN47250-500 (Version 03.01)

Clearing STP statistics

To clear the STP statistics counters, use the following command.
clear spantree statistics port-list [vlan vlan-id]
As soon as you enter the command, WSS Software resets the STP counters for the specified ports or VLANs to 0. The
software then begins incrementing the counters again.

Spanning tree configuration scenario

This scenario configures a VLAN named backbone for a WSS’s connections to the network backbone, adds ports 21 and
22 to the VLAN, and enables STP on the VLAN to prevent loops.
1Remove the network cables from ports 21 and 22 or use WSS Software to disable the ports,. This prevents
a loop until you complete the STP configuration. To disable the ports and verify the results, type the
following commands:
WSS# set port disable 21-22
success: set "disable" on port 21-22
WSS# show port status
Port Name Admin Oper Config Actual Type Media
===============================================================================
1 up up auto 100/full network 10/100BaseTx
2 up down auto network 10/100BaseTx
3 up down auto network 10/100BaseTx
4 up down auto network 10/100BaseTx
5 up down auto network 10/100BaseTx
6 up down auto network 10/100BaseTx
7 up down auto network 10/100BaseTx
8 up down auto network 10/100BaseTx
9 up down auto network 10/100BaseTx
10 up down auto network 10/100BaseTx
11 up down auto network 10/100BaseTx
12 up down auto network 10/100BaseTx
13 up down auto network 10/100BaseTx
14 up down auto network 10/100BaseTx
15 up down auto network 10/100BaseTx
16 up down auto network 10/100BaseTx
17 up down auto network 10/100BaseTx
18 up down auto network 10/100BaseTx
19 up down auto network 10/100BaseTx
20 up down auto network 10/100BaseTx
21 down down auto network
22 down down auto network
2Configure a backbone VLAN and verify the configuration change. Type the following commands:
WSS# set vlan 10 name backbone port 21-22
success: change accepted.
WSS# show vlan config
Admin VLAN Tunl Port
VLAN Name Status State Affin Port Tag State