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

相关推荐
哥坐11路2 小时前
渗透测试技法之口令安全
网络·推荐算法
忆源2 小时前
SOME/IP--协议英文原文讲解4
网络·网络协议·tcp/ip
马立杰3 小时前
H3CNE-23-vlan间路由
网络·智能路由器·h3cne
是Dream呀4 小时前
Python从0到100(八十六):神经网络-ShuffleNet通道混合轻量级网络的深入介绍
网络·python·神经网络
山楂树の6 小时前
计算机网络 性能指标相关
网络·计算机网络
泪不是Web妳而流6 小时前
【HTML入门】Sublime Text 4与 Phpstorm
网络·经验分享·编辑器·html·学习方法·sublime text·phpstorm
star010-6 小时前
一文学会HTML编程之视频+图文详解详析
前端·网络·网络安全·html·html5
学问小小谢12 小时前
第26节课:内容安全策略(CSP)—构建安全网页的防御盾
运维·服务器·前端·网络·学习·安全
一ge科研小菜鸡12 小时前
网络安全实战指南:攻防技术与防御策略
网络
马立杰16 小时前
H3CNE-33-BGP
运维·网络·h3cne