Skip Navigation Links
Exit Print View
| Sun Ethernet Fabric Operating System ### PVRST+ Administration Guide

Search Scope:

- This Document
- Entire Library

## Display the Spanning Tree Status

Variable | Description
--- | ---
`show spanning-tree active` | Displays the detail of the bridge and active ports for all of the active instances. Active ports are those ports that are participating in the spanning tree.
`show spanning-tree detail` | Displays detailed information about the port and bridge for all of the active instances. This information includes designated bridge details, designated port details, timer values, and root bridge details.
`show spanning-tree vlan 10 active` | Displays the detail of the bridge and the active port for the instance corresponding to requested VLAN.
`show spanning-tree vlan 10 detail` | Displays detailed information about the port and bridge. This information includes designated bridge details, designated port details, timer values, and root bridge details.
`show spanning-tree vlan 10 interface interface-id` | Displays spanning tree information for the specified interface.
`show spanning-tree vlan 10 summary` | Displays a summary of port states, or displays the total lines of the STP state section.

The preceding table shows the commands that display the spanning tree status and `VLAN 10` is used as command examples. Replace `VLAN 10` with a different VLAN ID to review the status for a particular VLAN.

The following examples show how to display general and detailed spanning tree status information. Before running the `show` commands, ensure that you have run the configuration commands in the previous sections (for example, disabling GVRP, enabling PVRST+, configuring ports as trunk, and enabling `VLAN 1`, `10`, `20`, `30`, and `40`).

1. Type the following `show` command in the switch to display general information.

       TOR-1 SEFOS# show spanning-tree vlan 10
       -------------------------------------------------------------------
       Spanning-tree for VLAN 10
       Root Id         Priority   32778
                       Address    00:14:4f:6c:56:6f
                       Cost       2000
                       Port       Ex0/1
                       Hello Time 2 Sec, Max Age 20 Sec, Forward Delay 15 Sec
       Spanning Tree Enabled Protocol PVRST
       Bridge Id       Priority 32778
                       Address 00:14:4f:6c:69:ed
                       Hello Time 2 sec, Max Age 20 sec, Forward Delay 15 sec
       Name     Role         State        Cost     Prio   Type
       ----     ----         -----        ----     ----   ------
       Ex0/1    Root         Forwarding   2000     128    P2P
       Ex0/57   Alternate    Discarding   2000     128    P2P

       TOR-1 SEFOS# show spanning-tree active

       -------------------------------------------------------------------
       Spanning-tree for VLAN 1
       Root Id         Priority   32769
                       Address    00:14:4f:6c:56:6f
                       Cost       2000
                       Port       Ex0/1
                       Hello Time 2 Sec, Max Age 20 Sec, Forward Delay 15 Sec

       Spanning Tree Enabled Protocol PVRST
       Bridge Id       Priority 32769
                       Address 00:14:4f:6c:69:ed
                       Hello Time 2 sec, Max Age 20 sec, Forward Delay 15 sec
       Name     Role         State        Cost     Prio   Type
       ----     ----         -----        ----     ----   ------
       Ex0/1    Root         Forwarding   2000     128    P2P
       Ex0/45   Designated   Forwarding   2000     128    P2P
       Ex0/57   Designated   Forwarding   2000     128    P2P

       -------------------------------------------------------------------
       Spanning-tree for VLAN 10
       Root Id         Priority   32778
                       Address    00:14:4f:6c:56:6f
                       Cost       2000
                       Port       Ex0/1
                       Hello Time 2 Sec, Max Age 20 Sec, Forward Delay 15 Sec

       Spanning Tree Enabled Protocol PVRST
       Bridge Id       Priority 32778
                       Address 00:14:4f:6c:69:ed
                       Hello Time 2 sec, Max Age 20 sec, Forward Delay 15 sec
       Name     Role         State        Cost     Prio   Type
       ----     ----         -----        ----     ----   ------
       Ex0/1    Root         Forwarding   2000     128    P2P
       Ex0/57   Designated   Forwarding   2000     128    P2P

       -------------------------------------------------------------------
       Spanning-tree for VLAN 20
       Root Id         Priority   32788
                       Address    00:14:4f:6c:56:6f
                       Cost       2000
                       Port       Ex0/1
                       Hello Time 2 Sec, Max Age 20 Sec, Forward Delay 15 Sec

       Spanning Tree Enabled Protocol PVRST
       Bridge Id       Priority 32788
                       Address 00:14:4f:6c:69:ed
                       Hello Time 2 sec, Max Age 20 sec, Forward Delay 15 sec
       Name     Role         State        Cost     Prio   Type
       ----     ----         -----        ----     ----   ------
       Ex0/1    Root         Forwarding   2000     128    P2P
       Ex0/57   Designated   Forwarding   2000     128    P2P

       -------------------------------------------------------------------
       Spanning-tree for VLAN 30
       Root Id         Priority   32798
                       Address    00:14:4f:6c:56:6f
                       Cost       2000
                       Port       Ex0/1
                       Hello Time 2 Sec, Max Age 20 Sec, Forward Delay 15 Sec

       Spanning Tree Enabled Protocol PVRST
       Bridge Id       Priority 32798
                       Address 00:14:4f:6c:69:ed
                       Hello Time 2 sec, Max Age 20 sec, Forward Delay 15 sec
       Name     Role         State        Cost     Prio   Type
       ----     ----         -----        ----     ----   ------
       Ex0/1    Root         Forwarding   2000     128    P2P
       Ex0/57   Designated   Forwarding   2000     128    P2P

       -------------------------------------------------------------------
       Spanning-tree for VLAN 40
       Root Id         Priority   32808
                       Address    00:14:4f:6c:56:6f
                       Cost       2000
                       Port       Ex0/1
                       Hello Time 2 Sec, Max Age 20 Sec, Forward Delay 15 Sec

       Spanning Tree Enabled Protocol PVRST
       Bridge Id       Priority 32808
                       Address 00:14:4f:6c:69:ed
                       Hello Time 2 sec, Max Age 20 sec, Forward Delay 15 sec
       Name     Role         State        Cost     Prio   Type
       ----     ----         -----        ----     ----   ------
       Ex0/1    Root         Forwarding   2000     128    P2P
       Ex0/57   Designated   Forwarding   2000     128    P2P

       TOR-1 SEFOS#

2. Type the following `show` command to display detailed information.

       TOR-1 SEFOS# show spanning-tree detail

       Bridge is executing the rstp compatible PVRST Protocol
       Bridge Identifier has priority 32769, Address 00:14:4f:6c:69:ed
       Configured Hello time 2 sec, Max Age 20 sec, Forward Delay 15 sec
       Number of Topology Changes 9
       Time since topology Change 0 seconds ago
       Transmit Hold-Count 3
       Max Age 20 Sec, Forward Delay 15 Sec, Hello Time 2 Sec

       Port 1 [Ex0/1] of VLAN 1 is Root      , Forwarding
       Port PathCost 2000     , Port Priority 128      , Port Identifier  128.1
       Designated Root has priority 32769, address 00:14:4f:6c:56:6f
       Designated Bridge has priority 32769, address 00:14:4f:6c:56:6f
       Designated Port Id is 128.3, Designated PathCost 0
       Timers: Hello Time - 2, MaxAge - 20, Forward Delay - 15, Hold - 1
       No of Transitions to forwarding State :2
       BPDUs : sent 33 , recieved 46616

       Port 45 [Ex0/45] of VLAN 1 is Designated, Forwarding
       Port PathCost 2000     , Port Priority 128      , Port Identifier  128.45
       Designated Root has priority 32769, address 00:14:4f:6c:56:6f
       Designated Bridge has priority 32769, address 00:14:4f:6c:69:ed
       Designated Port Id is 128.45, Designated PathCost 2000
       Timers: Hello Time - 2, MaxAge - 20, Forward Delay - 15, Hold - 1
       No of Transitions to forwarding State :4
       BPDUs : sent 12993 , recieved 0

       Port 57 [Ex0/57] of VLAN 1 is Designated, Forwarding
       Port PathCost 2000     , Port Priority 128      , Port Identifier  128.57
       Designated Root has priority 32769, address 00:14:4f:6c:56:6f
       Designated Bridge has priority 32769, address 00:14:4f:6c:69:ed
       Designated Port Id is 128.57, Designated PathCost 2000
       Timers: Hello Time - 2, MaxAge - 20, Forward Delay - 15, Hold - 1
       No of Transitions to forwarding State :3
       BPDUs : sent 44091 , recieved 2190

       Bridge is executing the rstp compatible PVRST Protocol
       Bridge Identifier has priority 32778, Address 00:14:4f:6c:69:ed
       Configured Hello time 2 sec, Max Age 20 sec, Forward Delay 15 sec
       Number of Topology Changes 2
       Time since topology Change 0 seconds ago
       Transmit Hold-Count 3
       Max Age 20 Sec, Forward Delay 15 Sec, Hello Time 2 Sec

       Port 1 [Ex0/1] of VLAN 10 is Root      , Forwarding
       Port PathCost 2000     , Port Priority 128      , Port Identifier  128.1
       Designated Root has priority 32778, address 00:14:4f:6c:56:6f
       Designated Bridge has priority 32778, address 00:14:4f:6c:56:6f
       Designated Port Id is 128.3, Designated PathCost 0
       Timers: Hello Time - 2, MaxAge - 20, Forward Delay - 15, Hold - 1
       No of Transitions to forwarding State :3
       BPDUs : sent 16 , recieved 46611

       Port 57 [Ex0/57] of VLAN 10 is Designated, Forwarding
       Port PathCost 2000     , Port Priority 128      , Port Identifier  128.57
       Designated Root has priority 32778, address 00:14:4f:6c:56:6f
       Designated Bridge has priority 32778, address 00:14:4f:6c:69:ed
       Designated Port Id is 128.57, Designated PathCost 2000
       Timers: Hello Time - 2, MaxAge - 20, Forward Delay - 15, Hold - 1
       No of Transitions to forwarding State :6
       BPDUs : sent 4860 , recieved 41443

       Bridge is executing the rstp compatible PVRST Protocol
       Bridge Identifier has priority 32788, Address 00:14:4f:6c:69:ed
       Configured Hello time 2 sec, Max Age 20 sec, Forward Delay 15 sec
       Number of Topology Changes 0
       Time since topology Change 0 seconds ago
       Transmit Hold-Count 3
       Max Age 20 Sec, Forward Delay 15 Sec, Hello Time 2 Sec

       Port 1 [Ex0/1] of VLAN 20 is Root      , Forwarding
       Port PathCost 2000     , Port Priority 128      , Port Identifier  128.1
       Designated Root has priority 32788, address 00:14:4f:6c:56:6f
       Designated Bridge has priority 32788, address 00:14:4f:6c:56:6f
       Designated Port Id is 128.3, Designated PathCost 0
       Timers: Hello Time - 2, MaxAge - 20, Forward Delay - 15, Hold - 1
       No of Transitions to forwarding State :1
       BPDUs : sent 4 , recieved 46607

       Port 57 [Ex0/57] of VLAN 20 is Designated, Forwarding
       Port PathCost 2000     , Port Priority 128      , Port Identifier  128.57
       Designated Root has priority 32788, address 00:14:4f:6c:56:6f
       Designated Bridge has priority 32788, address 00:14:4f:6c:69:ed
       Designated Port Id is 128.57, Designated PathCost 2000
       Timers: Hello Time - 2, MaxAge - 20, Forward Delay - 15, Hold - 1
       No of Transitions to forwarding State :3
       BPDUs : sent 46280 , recieved 2

       Bridge is executing the rstp compatible PVRST Protocol
       Bridge Identifier has priority 32798, Address 00:14:4f:6c:69:ed
       Configured Hello time 2 sec, Max Age 20 sec, Forward Delay 15 sec
       Number of Topology Changes 0
       Time since topology Change 0 seconds ago
       Transmit Hold-Count 3
       Max Age 20 Sec, Forward Delay 15 Sec, Hello Time 2 Sec

       Port 1 [Ex0/1] of VLAN 30 is Root      , Forwarding
       Port PathCost 2000     , Port Priority 128      , Port Identifier  128.1
       Designated Root has priority 32798, address 00:14:4f:6c:56:6f
       Designated Bridge has priority 32798, address 00:14:4f:6c:56:6f
       Designated Port Id is 128.3, Designated PathCost 0
       Timers: Hello Time - 2, MaxAge - 20, Forward Delay - 15, Hold - 1
       No of Transitions to forwarding State :1
       BPDUs : sent 4 , recieved 46608

       Port 57 [Ex0/57] of VLAN 30 is Designated, Forwarding
       Port PathCost 2000     , Port Priority 128      , Port Identifier  128.57
       Designated Root has priority 32798, address 00:14:4f:6c:56:6f
       Designated Bridge has priority 32798, address 00:14:4f:6c:69:ed
       Designated Port Id is 128.57, Designated PathCost 2000
       Timers: Hello Time - 2, MaxAge - 20, Forward Delay - 15, Hold - 1
       No of Transitions to forwarding State :3
       BPDUs : sent 46281 , recieved 2
       Bridge is executing the rstp compatible PVRST Protocol
       Bridge Identifier has priority 32808, Address 00:14:4f:6c:69:ed
       Configured Hello time 2 sec, Max Age 20 sec, Forward Delay 15 sec
       Number of Topology Changes 3
       Time since topology Change 0 seconds ago
       Transmit Hold-Count 3
       Max Age 20 Sec, Forward Delay 15 Sec, Hello Time 2 Sec

       Port 1 [Ex0/1] of VLAN 40 is Root      , Forwarding
       Port PathCost 2000     , Port Priority 128      , Port Identifier  128.1
       Designated Root has priority 32808, address 00:14:4f:6c:56:6f
       Designated Bridge has priority 32808, address 00:14:4f:6c:56:6f
       Designated Port Id is 128.3, Designated PathCost 0
       Timers: Hello Time - 2, MaxAge - 20, Forward Delay - 15, Hold - 1
       No of Transitions to forwarding State :1
       BPDUs : sent 6 , recieved 46608

       Port 57 [Ex0/57] of VLAN 40 is Designated, Forwarding
       Port PathCost 2000     , Port Priority 128      , Port Identifier  128.57
       Designated Root has priority 32808, address 00:14:4f:6c:56:6f
       Designated Bridge has priority 32808, address 00:14:4f:6c:69:ed
       Designated Port Id is 128.57, Designated PathCost 2000
       Timers: Hello Time - 2, MaxAge - 20, Forward Delay - 15, Hold - 1
       No of Transitions to forwarding State :3
       BPDUs : sent 46281 , recieved 2

       TOR-1 SEFOS#

3. Type the following `show` command to display the general spanning-tree information for a VLAN (`VLAN 10` in this example).

       TOR-1 SEFOS# show spanning-tree vlan 10 active

       -------------------------------------------------------------------
       Spanning-tree for VLAN 10
       Root Id         Priority   32778
                       Address    00:14:4f:6c:56:6f
                       Cost       2000
                       Port       Ex0/1
                       Hello Time 2 Sec, Max Age 20 Sec, Forward Delay 15 Sec

       Spanning Tree Enabled Protocol PVRST
       Bridge Id       Priority 32778
                       Address 00:14:4f:6c:69:ed
                       Hello Time 2 sec, Max Age 20 sec, Forward Delay 15 sec
       Name     Role         State        Cost     Prio   Type
       ----     ----         -----        ----     ----   ------
       Ex0/1    Root         Forwarding   2000     128    P2P
       Ex0/57   Designated   Forwarding   2000     128    P2P

       TOR-1 SEFOS#

4. Type the following `show` command to display the detailed information for a VLAN (`VLAN 10` in this example).

       TOR-1 SEFOS# show spanning-tree vlan 10 detail

       Bridge is executing the rstp compatible PVRST Protocol
       Bridge Identifier has priority 32778, Address 00:14:4f:6c:69:ed
       Configured Hello time 2 sec, Max Age 20 sec, Forward Delay 15 sec
       Number of Topology Changes 2
       Time since topology Change 0 seconds ago
       Transmit Hold-Count 3
       Max Age 20 Sec, Forward Delay 15 Sec, Hello Time 2 Sec
       Port 1 [Ex0/1] of VLAN 10 is Root      , Forwarding
       Port PathCost 2000     , Port Priority 128      , Port Identifier  128.1
       Designated Root has priority 32778, address 00:14:4f:6c:56:6f
       Designated Bridge has priority 32778, address 00:14:4f:6c:56:6f
       Designated Port Id is 128.3, Designated PathCost 0
       Timers: Hello Time - 2, MaxAge - 20, Forward Delay - 15, Hold - 1
       No of Transitions to forwarding State :3
       BPDUs : sent 16 , recieved 46694
       Port 57 [Ex0/57] of VLAN 10 is Designated, Forwarding
       Port PathCost 2000     , Port Priority 128      , Port Identifier  128.57
       Designated Root has priority 32778, address 00:14:4f:6c:56:6f
       Designated Bridge has priority 32778, address 00:14:4f:6c:69:ed
       Designated Port Id is 128.57, Designated PathCost 2000
       Timers: Hello Time - 2, MaxAge - 20, Forward Delay - 15, Hold - 1
       No of Transitions to forwarding State :6
       BPDUs : sent 4942 , recieved 41443

       TOR-1 SEFOS#

5. Type the following `show` command to display the detailed information for a VLAN interface (0/1 in this example).

       TOR-1 SEFOS# show spanning-tree vlan 10 interface extreme-ethernet 0/1

       Role         State        Cost     Prio
       ----         -----        ----     ----
       Root         Forwarding   2000     128
       TOR-1 SEFOS#

6. Type the following `show` command to display the spanning-tree summary for a VLAN (`VLAN 10` in this example).

       TOR-1 SEFOS# show spanning-tree vlan 10 summary

       Spanning tree enabled protocol is PVRST
       Spanning-tree pathcost method is long

       PVRST Port Roles and States
       Port-Index  Port-Role    Port-State   Port-Status
       ----------  ---------    ----------   -----------
       1           Root         Forwarding   Enabled
       57          Designated   Forwarding   Enabled

       TOR-1 SEFOS#

Copyright © 2010, 2012, Oracle and/or its affiliates. All rights reserved. Legal Notices |