API Guide

查看桥优先级和根桥分配
OS10# show spanning-tree active
Spanning tree enabled protocol rstp with force-version rstp
Executing IEEE compatible Spanning Tree Protocol
Root ID Priority 32768, Address 3417.4455.667f
Root Bridge hello time 2, max age 20, forward delay 15
Bridge ID Priority 36864, Address 90b1.1cf4.a523
Configured hello time 2, max age 20, forward delay 15
Interface Designated
Name PortID Prio Cost Sts Cost Bridge ID PortID
----------------------------------------------------------------------
ethernet1/1/6:3 128.282 128 2000 FWD 0 32768 3417.4455.667f 128.152
ethernet1/1/6:4 128.283 128 2000 BLK 0 32768 3417.4455.667f 128.153
Interface
Name Role PortID Prio Cost Sts Cost Link-type Edge
-----------------------------------------------------------------
ethernet1/1/6:3 Root 128.282 128 2000 FWD 0 AUTO No
ethernet1/1/6:4 Altr 128.283 128 2000 BLK 0 AUTO No
Identifier GUID-503EF0A2-FD04-4634-A4D1-F3699F0AEEBE
Version 4
Status Translation approved
为快速状态转移设置生成树链接类型
IEEE 802.1w 中的规定OS10 假设以全双工模式运行的端口是点对点链路。点对点链路可更快地转换为转发状态。默认情况下
OS10 从双工模式派生端口的链路类型。您可以使用 spanning-tree link-type 命令来覆盖双工模式。
OS10 假定在半双工模式下运行的端口是共享链路其快速转换功能不适用。此外如果您将某个端口明确指定为共享链路则不能
使用快速转换功能而不考虑双工设置。
要加快生成树的状态转换您可以将链路类型设置为点对点。要将链路类型设置为点对点请执行以下操作
INTERFACE 模式下使用以下命令。
spanning-tree link-type point-to-point
Identifier
GUID-F724707B-F140-43A0-AD3A-EC793F3052BE
Version 4
Status Translation approved
RSTP 命令
Identifier
GUID-680A790A-C672-4C7A-8B0E-5B5AD47D50C0
Version 4
Status Translation approved
show spanning-tree active
显示 RSTP 活动接口的 RSTP 配置和信息。
语法
show spanning-tree active
参数
默认 未配置
命令模式
EXEC
使用情况信息
示例
OS10# show spanning-tree active
Spanning tree enabled protocol rstp with force-version rstp
Executing IEEE compatible Spanning Tree Protocol
Root ID Priority 32768, Address 90b1.1cf4.9b8a
Root Bridge hello time 2, max age 20, forward delay 15
Bridge ID Priority 32768, Address 90b1.1cf4.9b8a
We are the root
Configured hello time 2, max age 20, forward delay 15
458 2