API Guide

ethernet1/1/1 244.128 128 500 BLK 0 32768 90b1.1cf4.9b8a 128.244
ethernet1/1/2 248.128 128 500 BLK 0 32768 90b1.1cf4.9b8a 128.248
ethernet1/1/3 252.128 128 500 FWD 0 32768 90b1.1cf4.9b8a 128.252
ethernet1/1/4 256.128 128 500 BLK 0 32768 90b1.1cf4.9b8a 128.256
Interface
Name Role PortID Prio Cost Sts Cost Link-type Edge
----------------------------------------------------------
ethernet1/1/1 Altr 128.244 128 500 BLK 0 AUTO No
ethernet1/1/2 Altr 128.248 128 500 BLK 0 AUTO No
ethernet1/1/3 Root 128.252 128 500 FWD 0 AUTO No
ethernet1/1/4 Altr 128.256 128 500 BLK 0 AUTO No
Identifier GUID-C196C5F7-1F7B-42C7-9A5E-09A1B52B70CC
Version 6
Status Translation approved
接口参数
L2 模式下设置接口的端口成本和端口优先级值。
端口成本
基于接口类型的值。上表列出了默认值。端口成本越高端口被选为转发端口的可能性就越小。
端口优先级
在多个端口具有相同的端口成本的情况下影响将端口选为转发端口的可能性。
INTERFACE 模式下将接口的端口成本从 1 更改为 200000000
spanning-tree rstp cost cost
INTERFACE 模式下更改接口的端口优先级 0 240默认值为 128
spanning-tree rstp priority priority-value
查看当前全局参数值
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
Interface Designated
Name PortID Prio Cost Sts Cost Bridge ID PortID
-------------------------------------------------------------------
ethernet1/1/1 244.128 128 500 BLK 0 32768 90b1.1cf4.9b8a 128.244
ethernet1/1/2 248.128 128 500 BLK 0 32768 90b1.1cf4.9b8a 128.248
ethernet1/1/3 252.128 128 500 FWD 0 32768 90b1.1cf4.9b8a 128.252
ethernet1/1/4 256.128 128 500 BLK 0 32768 90b1.1cf4.9b8a 128.256
Interface
Name Role PortID Prio Cost Sts Cost Link-type Edge
----------------------------------------------------------
ethernet1/1/1 Altr 128.244 128 500 BLK 0 AUTO No
ethernet1/1/2 Altr 128.248 128 500 BLK 0 AUTO No
ethernet1/1/3 Root 128.252 128 500 FWD 0 AUTO No
ethernet1/1/4 Altr 128.256 128 500 BLK 0 AUTO No
Identifier
GUID-1A458CC9-D1E7-4E06-B5DA-3A33DEE825AC
Version 6
Status Translation approved
根桥选择
RSTP 将确定根桥。为一个桥分配较低优先级会增加选择其成为根桥的可能性。
分配一个数字作为桥优先级或将其指定为 CONFIGURATION 模式下的主要或辅助根桥。配置优先级值范围 0 65535
4096 的倍数),默认值为 32768。分配的数字越小桥成为根桥的可能性就越大。
spanning-tree rstp priority priority-value
2 457