RSTP环路避免实验(华为)

思科设备参考:RSTP环路避免实验(思科)

一,技术简介

RSTP (Rapid Spanning Tree Protocol) 是从STP发展而来

• RSTP标准版本为IEEE802.1w

• RSTP具备STP的所有功能,可以兼容STP运行

• RSTP和STP有所不同

                减少了端口状态

                增加了端口角色

                BPDU格式及发送方式不同

                当交换网络拓扑结构发生变化时,RSTP可以更快地恢复网络的连通性

二,实验目的

基于RSTP,配置根网桥、备份根网桥、边缘端口。

三,配置命令

Switch3

配置根网桥

<Huawei>system-view

[Huawei]undo info-center enable        

[Huawei]stp mode rstp                         将STP的模式设置为RSTP

[Huawei]stp priority 0                          设置RSTP的优先级

[Huawei]display current-configuration 

Switch2

配置备份根网桥和边缘端口

<Huawei>system-view

[Huawei]undo info-center enable        

[Huawei]stp mode rstp                          将STP的模式设置为RSTP

[Huawei]stp priority 4096                      设置STP的优先级

[Huawei]int g0/0/1

[Huawei-GigabitEthernet0/0/1]stp edged-port enable        将接口配置为边缘端口

[Huawei-GigabitEthernet0/0/1]quit

[Huawei]display current-configuration

Switch1

配置边缘端口

<Huawei>system-view

[Huawei]undo info-center enable     

[Huawei]stp mode rstp                          将STP的模式设置为RSTP

[Huawei]stp priority 32768                    设置STP的优先级(默认32468)

[Huawei]int g0/0/1

[Huawei-GigabitEthernet0/0/1]stp edged-port enable        将接口配置为边缘端口

[Huawei-GigabitEthernet0/0/1]quit

[Huawei]display current-configuration

四,实验结果

利用PC1连续 ping  PC2进行测试

ping 192.168.1.2 -t

断掉任何一条链路,都能快速恢复通信

 设备问题:如果一直不通,中断--重新再ping

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值