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

相关推荐
1560820721911 分钟前
基于ZYNQ的LWIP网络TCP/IP调试
网络·网络协议·tcp/ip
不懂网络的坤坤34 分钟前
电脑C盘清理技巧:释放空间,提升性能
运维·网络·电脑
真正的醒悟1 小时前
H3C-WAF-单机部署
网络
Johny_Zhao2 小时前
Nmap 从入门到精通:详细指南
linux·网络·网络安全·信息安全·云计算·shell·nmap·yum源·系统运维·itsm
大大大大小小3 小时前
2025年5月网工基础知识
网络
callJJ3 小时前
JAVA网络编程——socket套接字的介绍上(详细)
网络·网络协议·tcp/ip·udp·socket·套接字·网络原理
Bruce_Liuxiaowei3 小时前
利用 XML 外部实体注入(XXE)读取文件和探测内部网络
xml·网络
数通Dinner3 小时前
基于netmiko模块实现支持SSH or Telnet的多线程多厂商网络设备自动化巡检脚本
运维·网络·python·自动化·信息与通信
kaikaile19955 小时前
matlab多智能体网络一致性研究
开发语言·网络·matlab
斯普信专业组12 小时前
IP隧道技术中数据包头部的变化分析:必然增加的封装机制
网络·tcp/ip·php