Cisco Systems N3KC3064TFAL3 Enabling BPDU Guard on Specified Interfaces, edge bpduguard default

Models: N3KC3064TFAL3 N3KC3048TP1GE

1 164
Download 164 pages 5.98 Kb
Page 135
Image 135
switch(config)# spanning-tree port type

Configuring STP Extensions

Configuring STP Extensions

Procedure

 

Command or Action

Purpose

Step 1

switch# configure terminal

Enters configuration mode.

Step 2

switch(config)# spanning-tree port type

Enables BPDU Guard by default on all spanning

 

edge bpduguard default

tree edge ports. By default, global BPDU Guard

 

 

is disabled.

This example shows how to enable BPDU Guard on all spanning tree edge ports:

switch# configure terminal

switch(config)# spanning-tree port type edge bpduguard default

Enabling BPDU Guard on Specified Interfaces

You can enable BPDU Guard on specified interfaces. Enabling BPDU Guard shuts down the port if it receives a BPDU.

You can configure BPDU Guard on specified interfaces as follows:

spanning-tree bpduguard enableUnconditionally enables BPDU Guard on the interface.

spanning-tree bpduguard disableUnconditionally disables BPDU Guard on the interface.

no spanning-treebpduguardEnables BPDU Guard on the interface if it is an operational edge port and if the spanning-tree port type edge bpduguard default command is configured.

Before You Begin

Ensure that STP is configured.

Procedure

 

Command or Action

Purpose

 

Step 1

switch# configure terminal

Enters configuration mode.

Step 2

switch(config)# interface type

Specifies the interface to configure, and enters the

 

slot/port

interface configuration mode.

Step 3

switch(config-if)# spanning-tree

Enables or disables BPDU Guard for the specified

 

bpduguard {enable disable}

spanning tree edge interface. By default, BPDU Guard is

 

 

disabled on physical Ethernet interfaces.

Step 4

switch(config-if)# no spanning-tree

(Optional)

 

bpduguard

Disables BPDU Guard on the interface.

 

 

Note

Enables BPDU Guard on the interface if it is an

 

 

 

operational edge port and if you enter the

spanning-tree port type edge bpduguard default command.

Cisco Nexus 3000 NX-OS Layer 2 Switching Configuration Guide, Release 5.0(3)U3(1)

OL-26590-01

121

Page 135
Image 135
Cisco Systems N3KC3064TFAL3 Enabling BPDU Guard on Specified Interfaces, switchconfig# spanning-tree port type, bpduguard