RSTP环路避免实验(华为)

思科设备参考:RSTP环路避免实验(思科)

一,技术简介

RSTP (Rapid Spanning Tree Protocol) 是从STP发展而来

• RSTP标准版本为IEEE802.1w

• RSTP具备STP的所有功能,可以兼容STP运行

• RSTP和STP有所不同

减少了端口状态

增加了端口角色

BPDU格式及发送方式不同

当交换网络拓扑结构发生变化时,RSTP可以更快地恢复网络的连通性

二,实验目的

基于RSTP,配置根网桥、备份根网桥、边缘端口。

三,配置命令

Switch3

配置根网桥

<Huawei>system-view

Huawei\]undo info-center enable \[Huawei\]stp mode rstp 将STP的模式设置为RSTP \[Huawei\]stp priority 0 设置RSTP的优先级 \[Huawei\]display current-configuration ![](https://file.jishuzhan.net/article/1773571893635321858/deccbc05e7bb7b1893bc42f9e8a0b0c2.webp)

配置备份根网桥和边缘端口

<Huawei>system-view

Huawei\]undo info-center enable \[Huawei\]stp mode rstp 将STP的模式设置为RSTP \[Huawei\]stp priority 4096 设置STP的优先级 \[Huawei\]int g0/0/1 \[Huawei-GigabitEthernet0/0/1\]stp edged-port enable 将接口配置为边缘端口 \[Huawei-GigabitEthernet0/0/1\]quit \[Huawei\]display current-configuration ![](https://file.jishuzhan.net/article/1773571893635321858/4b85b804475b8f2bf32d329506121d94.webp) ![](https://file.jishuzhan.net/article/1773571893635321858/30e7c201b30edbf8e185242eea25b21f.webp)

Switch1

配置边缘端口

<Huawei>system-view

Huawei\]undo info-center enable \[Huawei\]stp mode rstp 将STP的模式设置为RSTP \[Huawei\]stp priority 32768 设置STP的优先级(默认32468) \[Huawei\]int g0/0/1 \[Huawei-GigabitEthernet0/0/1\]stp edged-port enable 将接口配置为边缘端口 \[Huawei-GigabitEthernet0/0/1\]quit \[Huawei\]display current-configuration ![](https://file.jishuzhan.net/article/1773571893635321858/2523d51d300c8fcad35a716e18637f9e.webp)

四,实验结果

利用PC1连续 ping PC2进行测试

ping -t 192.168.1.2

断掉环路任意一条链路都能快速恢复通信

test1

test2

相关推荐
DianSan_ERP4 天前
电商API接口全链路监控:构建坚不可摧的线上运维防线
大数据·运维·网络·人工智能·git·servlet
呉師傅4 天前
火狐浏览器报错配置文件缺失如何解决#操作技巧#
运维·网络·windows·电脑
2501_946205524 天前
晶圆机器人双臂怎么选型?适配2-12寸晶圆的末端效应器有哪些?
服务器·网络·机器人
linux kernel4 天前
第七部分:高级IO
服务器·网络
数字护盾(和中)4 天前
BAS+ATT&CK:企业主动防御的黄金组合
服务器·网络·数据库
~远在太平洋~4 天前
Debian系统如何删除多余的kernel
linux·网络·debian
unfeeling_4 天前
Keepalived实验
linux·服务器·网络
坐吃山猪4 天前
OpenClaw04_Gateway常见问题
网络·gateway·openclaw
上海云盾商务经理杨杨4 天前
2025年重大网络安全事件回顾与趋势分析
网络·安全·web安全
kylezhao20194 天前
C# 的开闭原则(OCP)在工控上位机开发中的具体应用
网络·c#·开闭原则