219
DWS-1008 User’s Manual
D-Link Systems, Inc.
Configuring and Managing STP
219
D-Link Systems, Inc.
Displaying Spanning Tree Information
You can use CLI commands to display the following STP information:
• Bridge STP settings and individual port information
• Blocked ports
• Statistics
• Port fast, backbone fast, and uplink fast convergence information
Displaying STP Bridge and Port Information
To display STP bridge and port information, use the following command:
show spantree
[
port-list
|
vlan
vlan-id
] [
active
]
By default, STP information for all ports and all VLANs is displayed. To display STP information
for specific ports or a specific VLAN only, enter a port list or a VLAN name or number. For
each VLAN, only the ports contained in the VLAN are listed in the command output.
To list only the ports that are in the active (forwarding) state, enter the
active
option. To
display STP information for VLAN mauve, type the following command:
DWS-1008#
show spantree vlan mauve
VLAN 3
Spanning tree mode PVST+
Spanning tree type IEEE
Spanning tree enabled
Designated Root 00-02-4a-70-49-f7
Designated Root Priority 32768
Designated Root Path Cost 19
Designated Root Port 1
Root Max Age 20 sec Hello Time 2 sec Forward Delay 15 sec
Bridge ID MAC ADDR 00-0b-0e-02-76-f7
Bridge ID Priority 32768
Bridge Max Age 20 sec Hello Time 2 sec Forward Delay 15 sec
Port Vlan Port-State Cost Prio Portfast
------------------------------------------------------------------------------
1 1 Forwarding 19 128 Disabled
2 1 Blocking 19 128 Disabled
3 1 Blocking 19 128 Disabled
4 1 Forwarding 19 128 Disabled
5 1 Blocking 19 128 Disabled
6 1 Blocking 19 128 Disabled
In this example, VLAN mauve contains ports 1 through 6. Ports 1 and 4 are forwarding
traffic. The other ports are blocking traffic.