RSTP环路避免实验(思科)

华为设备参考:RSTP环路避免实验(华为)

一,技术简介

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

• RSTP标准版本为IEEE802.1w

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

• RSTP和STP有所不同

减少了端口状态

增加了端口角色

BPDU格式及发送方式不同

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

二,实验目的

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

三,配置命令

Switch3

配置根网桥

Switch#configure terminal

Switch(config)#spanning-tree mode rapid-pvst 启用生成树协议,选用RSTP

Switch(config)#spanning-tree vlan 1-100 priority 0 配置STP的VLAN范围,及优先级

Switch(config)#end

Switch#show running-config

Switch2

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

Switch#configure terminal

Switch(config)#spanning-tree mode rapid-pvst 启用生成树协议,选用RSTP

Switch(config)#spanning-tree vlan 1-100 priority 4096 配置STP的VLAN范围,及优先级

Switch(config)#int f0/1

Switch(config-if)#spanning-tree portfast 启用PortFast边缘端口

Switch(config-if)#end

Switch#show running-config

Switch1

配置边缘端口

Switch#configure terminal

Switch(config)#spanning-tree mode rapid-pvst 启用生成树协议,选用RSTP

Switch(config)#spanning-tree vlan 1-100 priority 32768 配置VLAN范围,及优先级

Switch(config)#int f0/1

Switch(config-if)#spanning-tree portfast 启用PortFast特性

Switch(config-if)#end

Switch#show running-config

四,实验结果

利用PC1连续 ping PC2进行测试

ping -t 192.168.1.2

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

test1

test2

相关推荐
☆璇15 小时前
【Linux】网络基础概念
linux·网络
独行soc16 小时前
2025年渗透测试面试题总结-106(题目+回答)
网络·python·安全·web安全·adb·渗透测试·安全狮
A Runner for leave16 小时前
网络与通信安全课程复习汇总1——课程导入
网络·安全·web安全
wanhengidc16 小时前
云手机长期使用会消耗很多流量吗
网络·游戏·智能手机·架构·云计算
要做朋鱼燕16 小时前
密码学安全:CIA三元组与三大核心技术
网络·笔记·密码学·嵌入式·加密·aes
fsnine16 小时前
从RNN到LSTM:深入理解循环神经网络与长短期记忆网络
网络·rnn·lstm
KKKlucifer17 小时前
生成式 AI 冲击下,网络安全如何破局?
网络·人工智能·web安全
Dxy123931021617 小时前
python如何使用nacos
开发语言·网络·python
红尘客栈218 小时前
Kubernetes 集群调度
java·linux·网络·容器·kubernetes
aodunsoft18 小时前
安全月报 | 傲盾DDoS攻击防御2025年9月简报
网络·安全·ddos