API Guide
Bridge ID Priority 32769, Address 90b1.1cf4.a523
We are the root of VLAN 1
Configured hello time 2, max age 20, forward delay 15
Identifier GUID-C58E5837-59DE-4597-8FB8-E1B702AF3877
Version 4
Status Translation approved
RPVST+ 命令
Identifier GUID-4259EE3B-AB8D-417D-A786-ED527B036F7E
Version 5
Status Translation approved
show spanning-tree vlan
按 VLAN ID 显示 RPVST+ 状态和配置信息。
语法
show spanning-tree vlan vlan-id
参数
vlan vlan-id — 输入 VLAN ID 号,从 1 到 4093。
默认 未配置
命令模式
EXEC
使用情况信息 无
示例
OS10# show spanning-tree
Spanning tree enabled protocol rapid-pvst
VLAN 1
Executing IEEE compatible Spanning Tree Protocol
Root ID Priority 32769, Address 74e6.e2f5.bb80
Root Bridge hello time 2, max age 20, forward delay 15
Bridge ID Priority 32769, Address 74e6.e2f5.bb80
We are the root of VLAN 1
Configured hello time 2, max age 20, forward delay 15
Interface Designated
Name PortID Prio Cost Sts Cost Bridge ID PortID
----------------------------------------------------------------------------
ethernet1/1/1 128.260 128 200000000 FWD 0 32769 0000.0000.0000 128.260
ethernet1/1/2 128.264 128 200000000 FWD 0 32769 0000.0000.0000 128.264
ethernet1/1/3 128.268 128 200000000 FWD 0 32769 0000.0000.0000 128.268
ethernet1/1/4 128.272 128 200000000 FWD 0 32769 0000.0000.0000 128.272
ethernet1/1/5 128.276 128 200000000 FWD 0 32769 0000.0000.0000 128.276
ethernet1/1/6 128.280 128 200000000 FWD 0 32769 0000.0000.0000 128.280
ethernet1/1/7 128.284 128 200000000 FWD 0 32769 0000.0000.0000 128.284
ethernet1/1/8 128.288 128 200000000 FWD 0 32769 0000.0000.0000 128.288
ethernet1/1/9 128.292 128 200000000 FWD 0 32769 0000.0000.0000 128.292
ethernet1/1/10 128.296 128 200000000 FWD 0 32769 0000.0000.0000 128.296
ethernet1/1/11 128.300 128 200000000 FWD 0 32769 0000.0000.0000 128.300
ethernet1/1/12 128.304 128 200000000 FWD 0 32769 0000.0000.0000 128.304
支持的版本
10.2.0E or later
Identifier GUID-769ED075-C16A-4A16-B0DE-C891BCE6C061
Version 5
Status Translation approved
spanning-tree vlan cost
设置每个 VLAN 的接口的路径成本以进行 PVST 计算。
语法
spanning-tree vlan vlan-id cost {value}
参数
value — 输入端口成本值以设置 PVST 计算的接口的路径成本,从 1 到 200000000。
默认
• 100 Mb/s 以太网接口 = 200000
• 1 Gb 以太网接口 = 20000
• 10 Gb 以太网接口 = 2000
450 第 2 层