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

相关推荐
捷米研发三部36 分钟前
ProfiNet转Modbus TCP协议转换网关实现西门子PLC与工控机通讯在智能交通系统的应用案例
网络·网络协议
dreamtm1231 小时前
通俗理解 TCP 拥塞控制:像 “快递员看路况调速”,避免网络 “堵车”
网络·tcp/ip·php
ASKED_20196 小时前
常用 Linux 命令大全(文件、网络、时间、进程、数据库、工具全覆盖)
linux·网络·数据库
我还可以再学点7 小时前
八股文面试攻略四:网络篇
网络·面试·职场和发展
q***76667 小时前
显卡(Graphics Processing Unit,GPU)架构详细解读
大数据·网络·架构
网安小白的进阶之路7 小时前
B模块 安全通信网络 第一门课 园区网实现与安全-1
网络·安全
dragoooon349 小时前
[Linux网络——Lesson2.socket套接字 && 简易UDP网络程序]
linux·网络·udp
独行soc9 小时前
2025年渗透测试面试题总结-254(题目+回答)
网络·python·安全·web安全·adb·渗透测试·安全狮
i_am_a_div_日积月累_10 小时前
websocket设置和断开机制
网络·websocket·网络协议