Cisco Nexus 5000 Series Switch CLI Software Configuration Guide (OL-16597-01, July 2009)

PurposeCommand or Action
Specifies the interface to configure, and enters the
interface configuration mode.
switch(config)# interface type
slot/port
Step 2
Enables or disables BPDU Filtering for the specified
spanning tree edge interface. By default, BPDU Filtering
is disabled.
switch(config-if)# spanning-tree
bpdufilter {enable | disable}
Step 3
(Optional)
Disables BPDU Filtering on the interface.
switch(config-if)# no spanning-tree
bpdufilter
Step 4
Enables BPDU Filtering on the interface if the
interface is an operational spanning tree edge
port and if you enter the spanning-tree port type
edge bpdufilter default command.
Note
This example shows how to explicitly enable BPDU Filtering on the Ethernet spanning tree edge port 1/4:
switch# configure terminal
switch (config)# interface ethernet 1/4
switch(config-if)# spanning-tree bpdufilter enable
Enabling Loop Guard Globally
You can enable Loop Guard globally by default on all point-to-point spanning tree normal and network ports.
Loop Guard does not run on edge ports.
Loop Guard provides additional security in the bridge network. Loop Guard prevents alternate or root ports
from becoming the designated port because of a failure that could lead to a unidirectional link.
Entering the Loop Guard command for the specified interface overrides the global Loop Guard command.Note
Before You Begin
Ensure that STP is configured.
Ensure that you have spanning tree normal ports or have configured some network ports.
Procedure
PurposeCommand or Action
Enters configuration mode.switch# configure terminal
Step 1
Enables Loop Guard by default on all spanning tree
normal and network ports. By default, global Loop
Guard is disabled.
switch(config)# spanning-tree
loopguard default
Step 2
This example shows how to enable Loop Guard on all spanning tree normal or network ports:
switch# configure terminal
switch(config)# spanning-tree loopguard default
Cisco Nexus 5000 Series Switch CLI Software Configuration Guide
OL-16597-01 209
About STP Extensions
Enabling Loop Guard Globally