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 -t 192.168.1.2

断掉环路任意一条链路都能快速恢复通信

test1

test2

相关推荐

  1. (81)组合环路--->(05)避免组合环路

    2024-03-26 07:56:04       25 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-03-26 07:56:04       98 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-03-26 07:56:04       106 阅读
  3. 在Django里面运行非项目文件

    2024-03-26 07:56:04       87 阅读
  4. Python语言-面向对象

    2024-03-26 07:56:04       96 阅读

热门阅读

  1. Maya FBX导出导入

    2024-03-26 07:56:04       69 阅读
  2. 自动驾驶的Level等级

    2024-03-26 07:56:04       46 阅读
  3. vscode个人配置

    2024-03-26 07:56:04       39 阅读
  4. 华为广告打包报错,问题思考

    2024-03-26 07:56:04       33 阅读
  5. FasterRCNN代码解析

    2024-03-26 07:56:04       40 阅读
  6. 002-基于Pytorch的Fashion-MNIST图像分类

    2024-03-26 07:56:04       44 阅读
  7. npm 常用命令详解

    2024-03-26 07:56:04       44 阅读
  8. Python 机器学习 XGBoost最优模型构建方法

    2024-03-26 07:56:04       39 阅读
  9. 开发指南018-前端存储

    2024-03-26 07:56:04       35 阅读