cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1059
Views
0
Helpful
3
Replies

BPDU guard

The_guroo_2
Level 2
Level 2

gusy whats the difference between the following command

spanning-tree bpdu guard enable

spanning-tree bpdu guard default

thanks and have a good new year

3 Replies 3

crow930us
Level 3
Level 3

By default bpdu guard is disabled (default). The enable option turns it on.

Cisco docs are here: Spanning Tree PortFast BPDU Guard Enhancement http://www.cisco.com/en/US/tech/tk389/tk621/technologies_tech_note09186a008009482f.shtml

smothuku
Level 7
Level 7

Hi ,

Wish U A HAPPY NEW YEAR.

BPDU guard is a feature that prevents a port from receiving BPDUs. This feature is typically used in a service provider environment where the administrator wants to prevent an access port from participating in the spanning tree. If the port still receives a BPDU, it is put in the ErrDisable state as a protective measure. This command has three states:

•spanning-tree bpduguard enable-This state unconditionally enables BPDU guard on the interface.

•spanning-tree bpduguard disable-This state unconditionally disables BPDU guard on the interface.

•no spanning-tree bpduguard-This state enables BPDU guard on the interface if it is in the operational PortFast state and if the spanning-tree portfast bpduguard default command is configured.

Examples

This example shows how to enable BPDU guard on this interface:

Switch(config-if)# spanning-tree bpduguard enable

Switch(config-if)#

spanning-tree portfast bpduguard default

To enable BPDU guard by default on all the PortFast ports, use the spanning-tree portfast bpduguard default command. To return to the default settings, use the no form of this command.

spanning-tree portfast bpduguard default

no spanning-tree portfast bpduguard default

Caution Be careful when using this command. You should use this command only with the interfaces that connect to the end stations; otherwise, an accidental topology loop could cause a data packet loop and disrupt the Catalyst 4500 series switch and network operation.

--------------------------------------------------------------------------------

BPDU guard disables a port if it receives a BPDU. BPDU guard is applied only on ports that are PortFast enabled and are in an operational PortFast state.

Examples

This example shows how to enable BPDU guard by default:

Switch(config)# spanning-tree portfast bpduguard default

Switch(config)#

Cheers ,

Satish

wandering_997
Level 1
Level 1

At least, they're in different command mode. :)

(config-if)#spanning-tree bpduguard enable

(config)#spanning-tree portfast bpduguard default

The 1st one enables bpduguard on the specified interface.

The 2nd one enables bpduguard on all interfaces which portfast is enabled.

http://www.cisco.com/en/US/docs/switches/lan/catalyst3750/software/release/12.2_25_see/command/reference/ComRef.html

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card