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

相关推荐
AORO20252 小时前
智能三防手机哪款好?22000mAh+夜视+露营灯打造专业户外装备
服务器·网络·智能手机·电脑·1024程序员节
Hello.Reader3 小时前
Data Sink定义、参数与可落地示例
java·前端·网络
报错小能手6 小时前
计算机网络自顶向下方法36——网络层 网络地址转换 网络安全(防火墙、入侵检测系统)
网络·计算机网络·智能路由器
研究司马懿6 小时前
【ETCD】ETCD常用命令
网络·数据库·云原生·oracle·自动化·运维开发·etcd
独行soc7 小时前
2025年渗透测试面试题总结-234(题目+回答)
网络·python·安全·web安全·渗透测试·1024程序员节·安全狮
上海云盾安全满满8 小时前
APP应用怎么选择游戏盾
网络·游戏
打不了嗝 ᥬ᭄8 小时前
数据链路层
linux·网络·网络协议·http
Fanmeang9 小时前
无线交换机(AC)核心技术详解:构建集中式Wi-Fi网络的基石
网络
。puppy10 小时前
下一跳(Next Hop):网络转发的 “关键一步”
网络
Fanmeang11 小时前
华为交换机VLAN技术详解:从基础到高级应用
运维·网络·华为·vlan·交换机·mux vlan