Configuration Prerequisites

MSTP runs normally on the device.

Configuring BPDU Guard

Configuration procedure

Follow these steps to configure BPDU guard:

 

To do…

 

Use the command…

 

Remarks

 

Enter system view

 

system-view

 

 

 

 

 

 

 

 

Enable the BPDU guard

 

stp bpdu-protection

 

Required

 

 

 

The BPDU guard function is disabled by default.

 

function

 

 

 

Configuration example

# Enable the BPDU guard function.

<device> system-view

[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

stp interface interface-list

Required

The root guard function is

on specified ports

root-protection

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

 

 

 

Required

 

 

stp root-protection

 

The root guard function is

 

on the current port

 

 

 

 

 

 

disabled by default.

 

 

 

 

 

 

 

 

 

 

 

Configuration example

# Enable the root guard function on GigabitEthernet 1/0/1.

1)Perform this configuration in system view

<device> system-view

[device] stp interface GigabitEthernet1/0/1 root-protection

1-37

Page 207
Image 207
3Com WX3000 operation manual Configuring Bpdu Guard, Configuring Root Guard, Root-protection, Stp root-protection