API Guide

CONFIGURATION 模式下将设备配置为根或辅助根。
spanning-tree vlan vlan-id root {primary | secondary}
vlan-id 输入 VLAN ID 1 4093
primary 输入桥作为主桥或根桥。主要桥值为 24576
secondary 将桥输入为辅助根桥。第二桥值为 28672
将根桥配置为主桥
OS10(config)# spanning-tree vlan 1 root primary
验证根桥信息
OS10# show spanning-tree active
Spanning tree enabled protocol rapid-pvst with force-version rstp
VLAN 1
Executing IEEE compatible Spanning Tree Protocol
Root ID Priority 24577, Address 90b1.1cf4.a523
Root Bridge hello time 2, max age 20, forward delay 15
Bridge ID Priority 24577, Address 90b1.1cf4.a523
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/5 128.276 128 500 FWD 0 24577 90b1.1cf4.a523 128.276
ethernet1/1/6 128.280 128 500 LRN 0 24577 90b1.1cf4.a523 128.280
Interface
Name Role PortID Prio Cost Sts Cost Link-type Edge
-------------------------------------------------------------
ethernet1/1/5 Desg 128.276 128 500 FWD 0 AUTO No
ethernet1/1/6 Desg 128.280 128 500 LRN 0 AUTO No
Identifier
GUID-40EE0DF0-9120-4E2F-B6AB-A75E7D988322
Version 6
Status Translation approved
全局参数
所有非根桥都接受根桥上的计时器值。
转发时间 接口从丢弃状态转换为获知状态或从获知状态转换为转发状态所需的时间量。
问候时间
桥发送 BPDU 的时间间隔。
最大期限
在桥通过重新计算 RPVST+ 拓扑来刷新信息之前保持配置信息的时间长度。
CONFIGURATION 模式下修改转发时间以秒为单位), 4 30默认值为 15
spanning-tree vlan vlan-id forward-time seconds
CONFIGURATION 模式下修改问候时间 1 10默认值为 2。由于大型配置涉及更多数量的端口Dell EMC 建议增加问候
时间。
spanning-tree vlan vlan-id hello-time seconds
CONFIGURATION 模式下更改最大期限以秒为单位), 6 40默认值为 20
spanning-tree vlan vlan-id max-age seconds
查看 RPVST+ 全局参数
OS10# show spanning-tree active
Spanning tree enabled protocol rapid-pvst with force-version rstp
VLAN 1
Executing IEEE compatible Spanning Tree Protocol
Root ID Priority 32769, Address 90b1.1cf4.a523
Root Bridge hello time 2, max age 20, forward delay 15
2 449