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

  • 16
    点赞
  • 20
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值