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

相关推荐
真正的醒悟4 小时前
图解网络34
网络
IT·小灰灰8 小时前
告别“翻墙“烦恼:DMXAPI让Gemini-3-pro-thinking调用快如闪电
网络·人工智能·python·深度学习·云计算
任子菲阳9 小时前
学Java第五十六天——网络编程
网络
程序员zgh9 小时前
常用通信协议介绍(CAN、RS232、RS485、IIC、SPI、TCP/IP)
c语言·网络·c++
小汐睡着了10 小时前
解决虚拟机VMware与宿主机网络不通的问题-error
linux·网络·redhat
Heart_to_Yang11 小时前
Telnet 调试屏幕输出信息卡死问题解决
网络·windows·经验分享
资料库0111 小时前
华为OSPF详解
网络·华为
yenggd12 小时前
锐捷路由器nat上网+ipsec配置案例
网络
liebe1*112 小时前
第九章 防火墙入侵防御
运维·网络·防火墙
sc.溯琛12 小时前
计算机网络试题分类及解析完整版
网络