STP : 生成树协议 ---- (破环)交换机中
适用场景 why STP ?
ARP 广播风暴
mac 地址飘逸
重复的数据帧
STP 工作过程 P49:
- 选举跟桥
- 确定跟端口
- 指定端口
- 阻塞备用端口, 形成无环网络
实验中需要用的的命令集合
1 display stp brief //查看STP的简要信息
2 // 进入端口模式下
3 shutdown // 关闭端口
4 undo shutdown // 取消关闭端口
5 stp edged-port enable 配置端口为边缘端口
6
7 stp root primary //设置交换机为根桥
8 stp root secondary // 设置交换机2为备份根桥
![image.png]()
![image.png]()