Configuration example, Configuring root guard, Configuration procedure – H3C Technologies H3C WX3000 Series Unified Switches User Manual
Page 205: Configuring loop guard, 36 configuring loop guard
22-36
To do…
Use the command…
Remarks
Enable the BPDU guard
function
stp bpdu-protection
Required
The BPDU guard function is disabled by default.
Configuration example
# Enable the BPDU guard function.
[device] stp bpdu-protection
Configuring Root Guard
Configuration procedure
Follow these steps to configure the root guard function in system view:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Enable the root guard function on
specified ports
stp interface
interface-list
root-protection
Required
The root guard function is disabled
by default.
Follow these steps to enable the root guard function in Ethernet port view:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Enter Ethernet port view
Interface
interface-type
interface-number
—
Enable the root guard function on
the current port
stp root-protection
Required
The root guard function is disabled
by default.
Configuration example
# Enable the root guard function on GigabitEthernet 1/0/1.
1) Perform this configuration in system view
[device] stp interface GigabitEthernet1/0/1 root-protection
2) Perform this configuration in Ethernet port view
[device] interface GigabitEthernet1/0/1
[device-GigabitEthernet1/0/1] stp root-protection
Configuring Loop Guard
Configuration procedure
Follow these steps to configure loop guard:
To do…
Use the command…
Remarks
Enter system view
system-view
—