To enable bridge protocol data unit (BPDU) Guard by default on all spanning tree edge ports, use the spanning-tree port type edge bpduguard default command. To disable BPDU Guard on all edge ports by default, use the no form of this command.
spanning-tree port type edge bpduguard default
no spanning-tree port type edge bpduguard default
This command has no arguments or keywords.
Disabled
Global configuration mode
|
Release
|
Modification
|
|---|---|
|
4.0(0)N1(1a)
|
This command was introduced.
|
To enable BPDU Guard by default, you must do the following:
Use this command to enable BPDU Guard globally on all spanning tree edge ports. BPDU Guard disables a port if it receives a BPDU.
Global BPDU Guard is applied only on spanning tree edge ports.
You can also enable BPDU Guard per interface; see the spanning-tree bpduguard command for more information.
Note We recommend that you enable BPDU Guard on all spanning tree edge ports.
This example shows how to enable BPDU Guard by default on all spanning tree edge ports:
|
Command
|
Description
|
|---|---|
|
show spanning-tree summary
|
Displays the information about the spanning tree configuration.
|
|
spanning-tree bpduguard
|
Enables BPDU guard on the interface.
|
|
spanning-tree port type edge
|
Configures an interface as a spanning tree edge port.
|