Configuration Prerequisites
MSTP runs normally on the switch.
Configuring BPDU Guard
Configuration procedure
Follow these steps to configure BPDU guard:
To do...
Enter system view
Enable the BPDU guard
function
Configuration example
# Enable the BPDU guard function.
<Sysname> system-view
[Sysname] stp bpdu-protection
Configuring Root Guard
Configuration procedure
Follow these steps to configure the root guard function in system view:
To do...
Enter system view
Enable the root guard function
on specified ports
Follow these steps to enable the root guard function in Ethernet port view:
To do...
Enter system view
Enter Ethernet port view
Enable the root guard function
on the current port
Configuration example
# Enable the root guard function on GigabitEthernet 1/0/1.
1)
Perform this configuration in system view
<Sysname> system-view
Use the command...
system-view
stp bpdu-protection
Use the command...
system-view
stp interface interface-list
root-protection
Use the command...
system-view
Interface interface-type
interface-number
stp root-protection
1-36
Remarks
—
Required
The BPDU guard function is
disabled by default.
Remarks
—
Required
The root guard function is
disabled by default.
Remarks
—
—
Required
The root guard function is
disabled by default.