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

Switch2

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

<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

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

四,实验结果

利用PC1连续 ping PC2进行测试

ping -t 192.168.1.2

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

test1

test2

相关推荐
风123456789~3 分钟前
【爬虫基础】第一部分 网络通讯-编程 P3/3
网络·爬虫
豪宇刘2 小时前
从三个维度了解 RPC(Remote Procedure Call,远程过程调用)
网络·网络协议·rpc
范桂飓5 小时前
RoCEv2 高性能传输协议与 Lossless 无损网络
网络
zl0_00_05 小时前
upload-labs
网络
你怎么睡得着的!7 小时前
【护网行动-红蓝攻防】第一章-红蓝对抗基础 认识红蓝紫
网络·安全·web安全·网络安全
anddddoooo12 小时前
域内证书维权
服务器·网络·网络协议·安全·网络安全·https·ssl
Long._.L12 小时前
OpenSSL实验
网络·密码学
Dyan_csdn12 小时前
【Python项目】基于Python的Web漏洞挖掘系统
网络·python·安全·web安全
okok__TXF13 小时前
Rpc导读
网络·网络协议·rpc