Cloud Native应用交付

  • 首页
  • 关于本站
  • 个人介绍
  • Downloads
  • Repo
    • Github
    • Container
  • F5
    • F5 In AI Agent Arch
    • F5 AI Infrastructure Blueprint
    • F5 Python SDK
    • F5-container
    • F5-LBaaS
  • 社交
    • 联系我
    • 微信/微博
    • 公众号
    • 打赏赞助
行至水穷处 坐看云起时
Cloud Native Application Services: cnadn.net
  1. 首页
  2. 交换机技术
  3. 正文

show spanning-tree

2006年08月30日 10576点热度 0人点赞 0条评论

Warning: Array to string conversion in /home/wwwroot/myf5/wp-content/plugins/wpjam-basic/public/wpjam-utils.php on line 496

Catalyst 6500 Series Cisco IOS Command Reference, 12.1 E

show spanning-tree

To display information about the spanning tree state, use the show spanning-tree command.

show spanning-tree [bridge-group | active | backbonefast | {bridge [id]}| detail | inconsistentports | {interface interface interface-number} | root | summary [total] | uplinkfast | {vlan vlan-id} | {port-channel number} | pathcost-method]

Syntax Description

bridge-group

(Optional) Specifies the bridge group number; valid values are from 1 to 255.

active

(Optional) Displays spanning tree information on active interfaces only.

backbonefast

(Optional) Displays spanning tree BackboneFast status.

bridge [id]

(Optional) Displays bridge status and configuration information.

detail

(Optional) Displays detailed information.

inconsistentports

(Optional) Displays root inconsistency state.

interface interface

(Optional) Interface type and number; possible valid values for type are ethernet, fastethernet, gigabitethernet, tengigabitethernet, pos, atm, and ge-wan.

interface-number

(Optional) Module and port number; see the "Usage Guidelines" section for valid values.

root

(Optional) Displays root bridge status and configuration.

summary

(Optional) Specifies a summary of port states.

total

(Optional) Displays the total lines of the spanning tree state
section.

uplinkfast

(Optional) Displays spanning tree UplinkFast status.

vlan vlan-id

(Optional) Specifies the VLAN ID; see the "Usage Guidelines" section for valid values.

port-channel number

(Optional) Specifies the channel interface; see the "Usage Guidelines" section for valid values.

pathcost-method

(Optional) Displays the default path cost calculation method used.

 

Defaults

This command has no default settings.

Command Modes

Priviledged EXEC

Command History

Release

Modification

12.0(7)XE

Support for this command was introduced on the Catalyst 6500 series switches.

12.1(1)E

Support for this command on the Catalyst 6500 series switches was extended to the 12.1 E release.

12.1(3a)E3

The number of valid values for port-channel changed; see the "Usage Guidelines" section for valid values.

12.1(11b)E

This command was changed to include the ge-wan, atm, and pos keywords.

12.1(11b)EX

This command was changed to support extended-range VLANs and MST.

12.1(13)E

This command was changed by removing the wide option, replacing the brief option with detail, displaying the port priority as part of the port ID, removing the priority column, and supporting the long cost format.

 

Usage Guidelines

The interface-number argument designates the module and port number. Valid values for interface-number depend on the specified interface type and the chassis and module used. For example, if you specify a Gigabit Ethernet interface and have a 48-port 10/100BASE-T Ethernet module installed in a 13-slot chassis, valid values for the module number are from 2 to 13 and valid values for the port number are from 1 to 48.

The number of valid values for port-channel num depends on the software release. For releases prior to Release 12.1(3a)E3, valid values are from 1 to 256; for Releases 12.1(3a)E3, 12.1(3a)E4, and 12.1(4)E1, valid values are from 1 to 64. Release 12.1(5c)EX and later support a maximum of 64 values ranging from 1 to 256. Release 12.1(13)E and later support a maximum of 64 values ranging from 1 to 282; values 257 to 282 are supported on the CSM and FWSM.

If your system is configured with a Supervisor Engine 1, valid values for vlan-id are from 1 to 1005. If your system is configured with a Supervisor Engine 2, valid values for vlan-id are from 1 to 4094. Extended-range VLANs are not supported on systems configured with a Supervisor Engine 1.

When checking spanning tree active states and you have a large number of VLANs, you can enter the show spanning-tree summary total command to display the total number without having to scroll through the list of VLANs.

Examples

This example shows how to display a summary of interface information:

Router# show spanning-tree

VLAN0001

  Spanning tree enabled protocol ieee

  Root ID    Priority    4097

             Address     0004.9b78.0800

             This bridge is the root

             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

  Bridge ID  Priority    4097   (priority 4096 sys-id-ext 1)

             Address     0004.9b78.0800

             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

             Aging Time 15 

Interface        Port ID                     Designated                Port ID

Name             Prio.Nbr      Cost Sts      Cost Bridge ID            Prio.Nbr

---------------- -------- --------- --- --------- -------------------- --------

Gi2/1            128.65           4 LIS         0  4097 0004.9b78.0800 128.65  

Gi2/2            128.66           4 LIS         0  4097 0004.9b78.0800 128.66  

Fa4/3            128.195         19 LIS         0  4097 0004.9b78.0800 128.195 

Fa4/4            128.196         19 BLK         0  4097 0004.9b78.0800 128.195 

Router#


Table 2-40 lists the output fields and definitions.

 

Table 2-40 show spanning-tree Command Output Fields

Field

Definition

Port ID Prio.Nbr

Port ID and priority number.

Cost

Port cost.

Sts

Displays status information.

 

This example shows how to display spanning tree information on active interfaces only:

Router# show spanning-tree active

UplinkFast is disabled

BackboneFast is disabled

 VLAN1 is executing the ieee compatible Spanning Tree protocol

  Bridge Identifier has priority 32768, address 0050.3e8d.6401

  Configured hello time 2, max age 20, forward delay 15

  Current root has priority 16384, address 0060.704c.7000

  Root port is 265 (FastEthernet5/9), cost of root path is 38

  Topology change flag not set, detected flag not set

  Number of topology changes 0 last change occurred 18:13:54 ago

  Times:  hold 1, topology change 24, notification 2

          hello 2, max age 14, forward delay 10

  Timers: hello 0, topology change 0, notification 0

 Port 265 (FastEthernet5/9) of VLAN1 is forwarding

   Port path cost 19, Port priority 128, Port Identifier 129.9.

   Designated root has priority 16384, address 0060.704c.7000

   Designated bridge has priority 32768, address 00e0.4fac.b000

.

.

.

Router#

This example shows how to display spanning tree BackboneFast status:

Router# show spanning-tree backbonefast

BackboneFast is enabled

 

BackboneFast statistics

-----------------------

Number of transition via backboneFast (all VLANs) : 0

Number of inferior BPDUs received (all VLANs)     : 0

Number of RLQ request PDUs received (all VLANs)   : 0

Number of RLQ response PDUs received (all VLANs)  : 0

Number of RLQ request PDUs sent (all VLANs)       : 0

Number of RLQ response PDUs sent (all VLANs)      : 0

Router# 

This example shows how to display spanning tree information for this bridge only:

Router# show spanning-tree bridge

VLAN1

  Bridge ID  Priority    32768

             Address     0050.3e8d.6401

             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

VLAN2

  Bridge ID  Priority    32768

             Address     0050.3e8d.6402

             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

VLAN3

  Bridge ID  Priority    32768

             Address     0050.3e8d.6403

             Hello


Time   2 sec  Max Age 20 sec  Forward Delay 15 sec          

.

.

.

Router#

This example shows how to display detailed interface information:

Router# show spanning-tree detail

VLAN1 is executing the ieee compatible Spanning Tree protocol 

Bridge Identifier has priority 4096, address 00d0.00b8.1401 

Configured hello time 2, max age 20, forward delay 15 

We are the root of the spanning tree 

Topology change flag not set, detected flag not set 

Number of topology changes 9 last change occurred 02:41:34 ago 

from FastEthernet4/21 

Times: hold 1, topology change 35, notification 2 

hello 2, max age 20, forward delay 15 

Timers: hello 1, topology change 0, notification 0, aging 300 

Port 213 (FastEthernet4/21) of VLAN1 is forwarding 

Port path cost 19, Port priority 128, Port Identifier 128.213. 

Designated root has priority 4096, address 00d0.00b8.1401 

Designated bridge has priority 4096, address 00d0.00b8.1401 

Designated port id is 128.213, designated path cost 0 

Timers: message age 0, forward delay 0, hold 0 

Number of transitions to forwarding state: 1 

BPDU: sent 4845, received 1 

Port 214 (FastEthernet4/22) of VLAN1 is forwarding 

Port path cost 19, Port priority 128, Port Identifier 128.214. 

Designated root has priority 4096, address 00d0.00b8.1401 

Designated bridge has priority 4096, address 00d0.00b8.1401 

Designated port id is 128.214, designated path cost 0 

Timers: message age 0, forward delay 0, hold 0 

Number of transitions to forwarding state: 1 

BPDU: sent 127545, received 5 

Router# 

This example shows how to display spanning tree information for a specific interface:

Router# show spanning-tree interface fastethernet 5/9

Interface Fa0/10 (port 23) in Spanning tree 1 is ROOT-INCONSISTENT Port path cost 100, Port priority 128 Designated root has priority 8192, address 0090.0c71.a400 Designated bridge has priority 32768, address 00e0.1e9f.8940 Designated port is 23, path cost 115 .

.

.

This example shows how to display spanning tree information for a specific VLAN:

Router# show spanning-tree vlan 200

VLAN0200 

 Spanning tree enabled protocol ieee 

 Root ID Priority 32768 

    Address 00d0.00b8.14c8 

    This bridge is the root 

    Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec

 Bridge ID Priority 32768 

    Address 00d0.00b8.14c8 

    Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec 

    Aging Time 300

Interface Role Sts Cost Prio.Nbr Status 

---------------- ---- --- --------- -------- -------------------------------- 

Fa4/4 Desg FWD 200000 128.196 P2p 

Fa4/5 Back BLK 200000 128.197 P2p

Router#

This example shows how to display spanning tree information for a specific bridge group:

Router# show spanning-tree 1

 UplinkFast is disabled

 BackboneFast is disabled

 

  Bridge group 1 is executing the ieee compatible Spanning Tree protocol

   Bridge Identifier has priority 32768, address 00d0.d39c.004d

   Configured hello time 2, max age 20, forward delay 15

   Current root has priority 32768, address 00d0.d39b.fddd

   Root port is 7 (FastEthernet2/
2), cost of root path is 19

   Topology change flag set, detected flag not set

   Number of topology changes 3 last change occurred 00:00:01 ago

           from FastEthernet2/2

   Times:  hold 1, topology change 35, notification 2

           hello 2, max age 20, forward delay 15 

   Timers: hello 0, topology change 0, notification 0  bridge aging time 15

 

Port 2 (Ethernet0/1/0) of Bridge group 1 is down

                                        

    Port path cost 100, Port priority 128

    Designated root has priority 32768, address 0050.0bab.1808

    Designated bridge has priority 32768, address 0050.0bab.1808

    Designated port is 2, path cost 0

    Timers: message age 0, forward delay 0, hold 0

    BPDU: sent 0, received 0

 

  Port 7 (FastEthernet2/2) of Bridge group 1 is forwarding

    Port path cost 19, Port priority 128, Port Identifier 128.7.

    Designated root has priority 32768, address 00d0.d39b.fddd

    Designated bridge has priority 32768, address 00d0.d39b.fddd

    Designated port id is 128.7, designated path cost 0

    Timers: message age 2, forward delay 0, hold 0

    Number of transitions to forwarding state: 1

    BPDU: sent 3, received 49                                                          

Router#      

This example shows how to display a summary of port states:

Router# show spanning-tree summary 

Root bridge for: Bridge group 1, VLAN0001, VLAN0004-VLAN1005 

 VLAN1013-VLAN1499, VLAN2001-VLAN4094 

EtherChannel misconfiguration guard is enabled 

Extended system ID is enabled 

Portfast is enabled by default 

PortFast BPDU Guard is disabled by default 

Portfast BPDU Filter is disabled by default 

Loopguard is disabled by default 

UplinkFast is disabled 

BackboneFast is disabled 

Pathcost method used is long

Name                   Blocking Listening Learning Forwarding STP Active 

---------------------- -------- --------- -------- ---------- ---------- 

1 bridge               0        0         0        1          1 

3584 vlans 3584 0 0 7168 10752

                       Blocking Listening Learning Forwarding STP Active 

---------------------- -------- --------- -------- ---------- ---------- 

Total                  3584     0         0        7169       10753 

Router#      

This example shows how to display the total lines of the spanning tree state section:

Router#  show spanning-tree summary total 

Root bridge for:Bridge group 10, VLAN1, VLAN6, VLAN1000.

Extended system ID is enabled.

PortFast BPDU Guard is disabled

EtherChannel misconfiguration guard is enabled

UplinkFast is disabled

BackboneFast is disabled

Default pathcost method used is long

Name                 Blocking Listening Learning Forwarding STP Active

-------------------- -------- --------- -------- ---------- ----------

           105 VLANs 3433     0         0        105        3538      

 

BackboneFast statistics

-----------------------

Number of transition via backboneFast (all VLANs) :0

Number of inferior BPDUs received (all VLANs)     :0

Number of RLQ request PDUs received (all VLANs)   :0

Number of RLQ response PDUs received (all VLANs)  :0

Number of RLQ request PDUs sent (all VLANs)       :0

Number of RLQ response PDUs sent (all VLANs)      :0

Router# 

This example shows how to determine if any ports are in root inconsistent state:

Router#  show spanning-tree inconsistentports 

Name                 Interface            Inconsistency

-------------------- -------------------- ------------------

 VLAN1               FastEthernet3/1      Root Inconsistent

Number of inconsistent ports (segments) in the system :1

Router# 
Array
本作品采用 知识共享署名-非商业性使用 4.0 国际许可协议 进行许可
标签: show spanning-tree
最后更新:2006年08月30日

纳米

linjing.io

打赏 点赞
< 上一篇
下一篇 >

文章评论

razz evil exclaim smile redface biggrin eek confused idea lol mad twisted rolleyes wink cool arrow neutral cry mrgreen drooling persevering
取消回复

这个站点使用 Akismet 来减少垃圾评论。了解你的评论数据如何被处理。

页面AI聊天助手
文章目录
  • show spanning-tree
    • Syntax Description
    •  
    • Defaults
  • Command Modes
    • Command History
    •  
    • Usage Guidelines
    • Examples

纳米

linjing.io

☁️迈向Cloud Native ADC ☁️

认证获得:
TOGAF: ID 152743
Kubernetes: CKA #664
Microsoft: MCSE MCDBA
Cisco: CCNP
Juniper: JNCIS
F5:
F5 Certified Solution Expert, Security
F5 Certified Technology Specialist, LTM/GTM/APM/ASM
F5 Certified BIG-IP Administrator
  • 点击查看本博技术要素列表
  • 归档
    分类
    • AI
    • Automation
    • Avi Networks
    • Cisco ACI
    • CISCO资源
    • F5 with ELK
    • F5-Tech tips
    • F5技术
    • Juniper
    • Linux
    • NGINX
    • SDN
    • ServiceMesh
    • WEB编程
    • WINDOWS相关
    • 业界文章
    • 交换机技术
    • 化云为雨/Openstack
    • 协议原理
    • 容器/k8s
    • 我的工作
    • 我的生活
    • 网站技术
    • 路由器技术
    • 项目案例
    标签聚合
    docker bigip irule openstack nginx DNS F5 network gtm k8s istio api flannel envoy neutron
    最近评论
    Abeny 发布于 8 个月前(02月20日) Very good!
    lz 发布于 2 年前(02月26日) 66666666666666
    汤姆 发布于 2 年前(09月10日) 嗨,楼主,里面的json怎么下载啊,怎么收费啊?
    汤姆 发布于 2 年前(09月09日) 大佬,kib的页面可以分享下吗?谢谢
    zhangsha 发布于 2 年前(05月12日) 资料发给我下,谢谢纳米同志!!!!lyx895@qq.com
    浏览次数
    • Downloads - 196,287 views
    • 联系我 - 137,371 views
    • 迄今为止最全最深入的BIGIP-DNS/GTM原理及培训资料 - 127,013 views
    • Github - 115,504 views
    • Sniffer Pro 4 70 530抓包软件 中文版+视频教程 - 91,665 views
    • F5常见log日志解释 - 90,869 views
    • 迄今为止最全最深入的BIGIP-DNS/GTM原理及培训资料 - 89,042 views
    • 从传统ADC迈向CLOUD NATIVE ADC - 下载 - 87,884 views
    • 关于本站 - 76,683 views
    • F5利用Elastic stack(ELK)进行应用数据挖掘系列(2)-DNS - 65,097 views
    链接表
    • F5SE创新
    • Jimmy Song‘s Blog
    • SDNlab
    • Service Mesh社区
    • 三斗室
    • 个人profile
    • 云原生社区

    COPYRIGHT © 2023 Cloud Native 应用交付. ALL RIGHTS RESERVED.

    Theme Kratos Made By Seaton Jiang

    京ICP备14048088号-1

    京公网安备 11010502041506号