1、配置 BPDU 保護功能
system-view
stp bpdu-protection //請在有邊緣端口的設備上進行如下配置
2、配置根保護功能
system-view
interface ge 0/0/1
stp root-protection
3、配置環路保護功能
system-view
interface ge 0/0/1
stp loop-protection
4、配置端口角色限制功能
system-view
interface ge 0/0/1
stp role-restiction
5、配置TC-BPDU傳播限制功能
system-view
interface ge 0/0/1
stp tc-restiction
6、配置防TC-BPDU***保護功能
system-view
stp tc-protection //該功能默認開啓
stp tc-protection threshold number
7、配置BPDU攔截功能
system-view
interface ge 0/0/1
bpdu-drop any