stp port bpdu-protection

Syntax

stp port bpdu-protection { enable | disable }

undo stp port bpdu-protection

View

Layer 2 Ethernet interface view, Layer 2 aggregate interface view, port group view

Default level

2: System level

Parameters

enable: Enables BPDU guard.

disable: Disables BPDU guard.

Description

Use stp port bpdu-protection to enable BPDU guard on an interface or port group.

Use undo stp port bpdu-protection to disable BPDU guard on an interface or port group.

By default, BPDU guard is not configured on an interface. For an edge port, BPDU guard is enabled on the port if the function is globally enabled. BPDU guard is disabled on the port if the function is disabled globally.

When the setting is configured in Layer 2 Ethernet interface view, it takes effect only on that interface.

When the setting is configured in Layer 2 aggregate interface view, it takes effect only on that aggregate interface.

When the setting is configured in port group view, it takes effect on all ports in the port group.

When the setting is configured on a member port in an aggregation group, it takes effect only after the port leaves the aggregation group.

Examples

# Enable BPDU guard on Ethernet 1/0/1.

<Sysname> system-view
[Sysname] interface ethernet 1/0/1
[Sysname-Ethernet1/0/1] stp port bpdu-protection enable