当前位置: 首页 > news >正文

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

相关文章:

  • TitanIDE与传统 IDE 比较
  • 【JMeter入门】—— JMeter介绍
  • 通俗讲解缓存穿透和缓存雪崩
  • 【微服务篇】分布式事务方案以及原理详解
  • 目标检测的相关模型图:YOLO系列和RCNN系列
  • 详解JS方法之slice、splice、substring、substr
  • admin端
  • 《c++》纯虚函数和抽象类
  • C#WPF控件大全
  • jenkins拉取java远程日志
  • RabbitMQ介绍
  • 20.Ubuntu下安装GCC
  • 1.7.2 python练习题15道
  • 【@changesets/cli】变更集实战教程
  • JavaEE之网络初识(网络中的一些基本概念)详解
  • iOS开发 - 转源码 - __weak问题解决
  • 【WPF应用7】 基本控件-Grid 布局的详解与示例
  • 【小尘送书-第十五期】Excel函数与公式应用大全for Excel 365 Excel
  • jvm高级面试题-2024
  • Vue3气泡卡片(Popover)
  • https://app.hackthebox.com/machines/Inject
  • Spring —— Spring简单的读取和存储对象 Ⅱ
  • 渗透测试之冰蝎实战
  • Mybatis、TKMybatis对比
  • Microsoft Office 2019(2022年10月批量许可版)图文教程
  • 《谷粒商城基础篇》分布式基础环境搭建
  • 哈希表题目:砖墙
  • Vue 3.0 选项 生命周期钩子
  • 【车载嵌入式开发】AutoSar架构入门介绍篇
  • 【计算机视觉 | 目标检测】DETR风格的目标检测框架解读