STP生成树协议RSTP

STP : 生成树协议 ---- (破环)交换机中

 

适用场景 why STP ?

ARP 广播风暴

mac 地址飘逸

重复的数据帧

 

STP 工作过程 P49:

  1. 选举跟桥
  2. 确定跟端口
  3. 指定端口
  4. 阻塞备用端口, 形成无环网络

 

实验中需要用的的命令集合

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

 

posted @ 2026-04-13 19:13  Yonah凤娇  阅读(27)  评论(0)    收藏  举报