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

相关推荐
汤姆yu12 小时前
Gemini 4 Argon模型综述:技术、能力与实际使用指南
网络·安全·web安全·ai·大模型
Seraphina3612 小时前
SQL注入(二)盲注
网络·数据库·经验分享·笔记·sql
2401_8685347813 小时前
无线网络规划设计
服务器·网络
螺蛳粉 螺蛳粉13 小时前
第二篇:keepalived VRRP 原理篇:协议与 VIP 漂移机制深入解析
网络·智能路由器·负载均衡·keepalived·高可用
盟接之桥13 小时前
AI助手:你的7×24小时智能管家——让异常预警无处不在
大数据·网络·数据库·人工智能·制造·ai编程
2603_9695792815 小时前
内网数据自动备份工具:隔离网络下的数据保护方案
网络
逗脑IDE15 小时前
零基础学ESP32:RFID无线射频卡——让ESP32拥有“刷卡“能力!
开发语言·网络·人工智能·python·esp32·硬件开发
cws20040115 小时前
监控摄像头选型指南
运维·网络·监控
和裕16 小时前
定制纸箱刀模费全解析:费用定义与可减免合作场景
大数据·运维·网络·人工智能·算法
troy12816 小时前
智能体沙箱:如何为 Agent 模型搭建安全试验场,降低幻觉带来的损失
网络·安全