stp port bpdu-protection

Use stp port bpdu-protection to configure BPDU guard on an interface.

Use undo stp port bpdu-protection to restore the default.

Syntax

stp port bpdu-protection { enable | disable }

undo stp port bpdu-protection

Default

BPDU guard is not configured on a per-edge port basis. The status of BPDU guard on an interface is the same as the global BPDU guard status.

Views

Layer 2 Ethernet interface view, Layer 2 aggregate interface view

Predefined user roles

network-admin

Parameters

enable: Enables BPDU guard.

disable: Disables BPDU guard.

Usage guidelines

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

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

When this command 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 Ten-GigabitEthernet 1/0/1.

<Sysname> system-view
[Sysname] interface ten-gigabitethernet 1/0/1
[Sysname-Ten-GigabitEthernet1/0/1] stp port bpdu-protection enable

Related commands

stp bpdu-protection

stp edged-port