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)

相关推荐
乐维_lwops3 分钟前
利用Zabbix监控指定IP列表的ping
网络·tcp/ip·zabbix
honsor4 分钟前
机房/档案室专用以太网温湿度传感器:智能监控赋能环境安全
运维·网络·物联网·安全
小白郭莫搞科技4 分钟前
鸿蒙跨端框架Flutter学习:ListView卡片样式详解
linux·服务器·windows
我在人间贩卖青春13 分钟前
TCP协议
网络·tcp/ip
晚风吹长发24 分钟前
初步了解Linux中的信号捕捉
linux·运维·服务器·c++·算法·进程·x信号
蚂蚁吃大象66626 分钟前
TLS-国密ECC握手流程
网络
码农学院33 分钟前
Windows 服务中获取本机的 IP 地址
网络·网络协议·tcp/ip
herinspace38 分钟前
管家婆分销软件中如何进行现金流量分配
运维·服务器·数据库·学习·电脑
(Charon)41 分钟前
【网络编程】从零开始理解 io_uring:Linux 网络编程的“核动力”引擎
linux·运维·服务器
麦聪聊数据42 分钟前
LiveOps事故零容忍:游戏行业数据库的细粒度权限管控与审计实践
运维·数据库·后端·sql