只在根端口或alternate口启用环路保护功能,启动后如果长时间收不到根桥的BPDU,则启动环路保护功能,根端口处于discarding 状态, alternate口处于转发状态,即自动关闭没有收到BPDU的根端口,开启alternate口。
命令: 在接口下配置 stp loop-protection
全局配置: stp tc-protection threshold xxx 单位时间 2 秒内处理多少TC报文