STP配置

在各交换机配置STP,使得A交换机是根桥,D是备份桥

C交换机的e0/0/1接口处于闭塞状态(discarding)

交换机之间的路径开销计算标准采用华为私有方法(legacy)

关闭C交换机的e0/0/2接口之后,在查看该交换机的e0/0/1接口

此时的状态是forwarding,则说明配置成功

<Huawei>undo terminal monitor

<Huawei>system-view

Huawei\]sysname SA \[SA\]stp enable \[SA\]stp mode stp \[SA\]stp priority 4096 \[SA\]stp pathcost-standard legacy ![](https://i-blog.csdnimg.cn/direct/0467dc492de747ccadfd97d3f977e124.png) \system-view \[Huawei\]sysname SB \[SB\]stp enable \[SB\]stp mode stp \[SB\]stp pathcost-standard legacy \[SB\]int e0/0/3 \[SB-Ethernet0/0/3\]stp edged-port enable \[SB-Ethernet0/0/3\]stp bpdu-filter enable \[SB-Ethernet0/0/3\]q ![](https://i-blog.csdnimg.cn/direct/bfa1b521cb0a423ba68724e58ebc6150.png) \[Huawei\]sysname SC \[SC\]stp enable \[SC\]stp mode stp \[SC\]stp pathcost-standard legacy \[SC\]in e0/0/1 \[SC-Ethernet0/0/1\]stp cost 20000 \[SC-Ethernet0/0/1\]in e0/0/3 \[SC-Ethernet0/0/3\]stp edged-port enable \[SC-Ethernet0/0/3\]stp bpdu-filter enable \[SC-Ethernet0/0/3\]q ![](https://i-blog.csdnimg.cn/direct/19cd9ea9c2864b399f1d44f605b5af0f.png) \system-view Enter system view, return user view with Ctrl+Z. \[Huawei\]sysname SD \[SD\]stp enable \[SD\]stp mode stp \[SD\]stp priority 8192 \[SD\]stp pathcost-standard legacy ![](https://i-blog.csdnimg.cn/direct/8da87cf193e849b5a0808878dd1f53df.png) 配置结束,开始测试 ![](https://i-blog.csdnimg.cn/direct/0d9e7f363bda458085fec77af18f030e.png) 关闭0001C的2口, \[SC-Ethernet0/0/2\]undo shutdown 关闭接口,连接超时 继续查看SC的配置 ![](https://i-blog.csdnimg.cn/direct/6d09801dd17b4aeda1f20bf5b3242137.png) Ping通 ![](https://i-blog.csdnimg.cn/direct/4cf23c04114c4834afa847c016aa76e3.png)

相关推荐
九河云5 小时前
如何选择适合的加密方法来保护云计算中的数据
网络·科技·物联网·金融·云计算
siriuuus5 小时前
Nginx 负载均衡调度算法
运维·nginx·负载均衡
中草药z5 小时前
【Docker】零基础上手:原理+Ubuntu/Windows GUI 安装 + 镜像源 / 目录优化
运维·ubuntu·docker·容器·gui·安装·cgroups
潇凝子潇6 小时前
网络协议的零拷贝 和 操作系统的零拷贝异同
网络·网络协议
weixin_445476686 小时前
一天一个设计模式——开闭原则
服务器·设计模式·开闭原则
RTC老炮6 小时前
webrtc弱网-BitrateEstimator类源码分析与算法原理
网络·人工智能·算法·机器学习·webrtc
jerryinwuhan6 小时前
LINUX复习资料(二)
linux·运维·服务器
郝学胜-神的一滴6 小时前
Linux下的阻塞与非阻塞模式详解
linux·服务器·开发语言·c++·程序人生·软件工程