Cisco Systems N3KC3064TFAL3 Manual De Usuario
Procedure
Purpose
Command or Action
Enters configuration mode.
switch# configure terminal
Step 1
Enables BPDU Guard by default on all spanning
tree edge ports. By default, global BPDU Guard
is disabled.
tree edge ports. By default, global BPDU Guard
is disabled.
switch(config)# spanning-tree port type
edge bpduguard default
edge bpduguard default
Step 2
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.
a BPDU.
You can configure BPDU Guard on specified interfaces as follows:
• spanning-tree bpduguard enable—Unconditionally enables BPDU Guard on the interface.
• spanning-tree bpduguard disable—Unconditionally disables BPDU Guard on the interface.
• no spanning-tree bpduguard—Enables 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
Purpose
Command or Action
Enters configuration mode.
switch# configure terminal
Step 1
Specifies the interface to configure, and enters the
interface configuration mode.
interface configuration mode.
switch(config)# interface type
slot/port
slot/port
Step 2
Enables or disables BPDU Guard for the specified
spanning tree edge interface. By default, BPDU Guard is
disabled on physical Ethernet interfaces.
spanning tree edge interface. By default, BPDU Guard is
disabled on physical Ethernet interfaces.
switch(config-if)# spanning-tree
bpduguard {enable | disable}
bpduguard {enable | disable}
Step 3
(Optional)
Disables BPDU Guard on the interface.
Disables BPDU Guard on the interface.
switch(config-if)# no spanning-tree
bpduguard
bpduguard
Step 4
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.
operational edge port and if you enter the
spanning-tree port type edge bpduguard
default command.
Note
Cisco Nexus 3000 NX-OS Layer 2 Switching Configuration Guide, Release 5.0(3)U3(1)
OL-26590-01
121
Configuring STP Extensions
Configuring STP Extensions