Spanning tree protection function
1. Configure BPDU protection function
System-view
Stp bpdu-protection / / Please configure the following on devices with edge ports
2. Configure root protection function
System-view
Interface ge 0/0/1
Stp root-protection
3. Configure the loop protection function
System-view
Interface ge 0/0/1
Stp loop-protection
4. Configure port role restrictions
System-view
Interface ge 0/0/1
Stp role-restiction
5. Configure TC-BPDU propagation restriction function
System-view
Interface ge 0/0/1
Stp tc-restiction
6. Configure anti-TC-BPDU*** protection function
System-view
Stp tc-protection / / this function is enabled by default
Stp tc-protection threshold number
7. Configure BPDU interception function
System-view
Interface ge 0/0/1
Bpdu-drop any