在华为交换机上,如何将桥优先级设置为4096?
A. stp priority 4096
B. stp root priority 4096
C. stp priority 1
✅ 正确的华为交换机桥优先级配置方法
1. 基本配置命令
<Huawei> system-view [Huawei] stp priority 0 # 表示 0 * 4096 = 0 [Huawei] stp priority 1 # 表示 1 * 4096 = 4096 [Huawei] stp priority 2 # 表示 2 * 4096 = 8192 [Huawei] stp priority 3 # 表示 3 * 4096 = 12288 ... [Huawei] stp priority 15 # 表示 15 * 4096 = 61440
2. 要设置为4096,正确的命令是:
<Huawei> system-view [Huawei] stp priority 1
3. 在MSTP实例中的配置
[Huawei] stp instance 0 priority 1 # 实例0的优先级为4096 [Huawei] stp instance 1 priority 2 # 实例1的优先级为8192
4. 验证配置
<Huawei> display stp -------[CIST Global Info][Mode MSTP]------- CIST Bridge :0 .4c1f-cc1a-6e57 Config Times :Hello 2s MaxAge 20s FwDly 15s MaxHop 20 Active Times :Hello 2s MaxAge 20s FwDly 15s MaxHop 20 CIST Root/ERPC :0 .4c1f-cc1a-6e57 / 0 CIST RegRoot/IRPC :0 .4c1f-cc1a-6e57 / 0 CIST RootPortId :0.0 BPDU-Protection :Disabled Bridge Priority :4096 # 这里显示的是实际值4096 ...
📝 重要说明
配置值范围:0 到 15(对应实际优先级 0 到 61440)
实际优先级 = 配置值 × 4096
默认值:(对应实际优先级 32768)
stp priority 8
🎯 常用配置示例
# 配置为根桥(优先级4096) [Huawei] stp priority 1 # 配置为备份根桥(优先级8192) [Huawei] stp priority 2 # 恢复默认优先级(32768) [Huawei] stp priority 8
© 版权声明
文章版权归作者所有,未经允许请勿转载。
相关文章
暂无评论...



