CLI Guide

Enabling Portfast BPDU guard and loop guard at the same time on a port results in
a port that remains in a Blocking state and prevents traffic from flowing through it.
For example, when Portfast BPDU guard and loop guard are both configured:
If a BPDU is received from a remote device, BPDU guard places the port in an
Err-Disabled Blocking state and no traffic is forwarded on the port.
If no BPDU is received from a remote device, loop guard places the port in a
Loop-Inconsistent Blocking state and no traffic is forwarded on the port.
Example
Dell(conf)#interface gigabitethernet 4/0
Dell(conf-if-gi-4/0)#spanning-tree rstp edge-port
Dell(conf-if-gi-4/0)#show config
!
interface GigabitEthernet 4/0
no ip address
switchport
spanning-tree rstp edge-port
no shutdown
Dell#
spanning-tree rstp
Configure an RSTP interface with one of these settings: port cost, edge port with optional bridge port
data unit (BPDU) guard, port priority, loop guard, or root guard.
Syntax
spanning-tree rstp {cost port-cost | edge-port [bpduguard
[shutdown-on-violation]] | bpdufilter | priority priority |
{rootguard}}
Parameters
cost port-cost Enter the keyword cost then the port cost value. The range
is from 1 to 200000. The defaults are:
10-Gigabit Ethernet interface = 2000
Port Channel interface with one 10 Gigabit Ethernet =
2000
Port Channel interface with one 40 Gigabit Ethernet =
1400
Port Channel with two 10 Gigabit Ethernet = 1800
Port Channel with two 40 Gigabit Ethernet = 600
edge-port Enter the keywords edge-port to configure the interface
as a rapid spanning tree edge port.
bpduguard
(OPTIONAL) Enter the keyword portfast to enable
Portfast to move the interface into Forwarding mode
immediately after the root fails.
Rapid Spanning Tree Protocol (RSTP)
1305