You are connected to SW1, a Layer 2 switch. The network administrator wants to prevent unauthorized switches from being connected to access ports. Port G0/1 is an access port in VLAN 10. You need to configure BPDU Guard on this port to protect against STP loops caused by rogue switches. Additionally, enable PortFast for immediate transition to forwarding.
Hints
- •PortFast should be applied to access ports to reduce STP convergence time.
- •BPDU Guard disables the port if a BPDU is received.
- •Both commands are under the interface configuration.
! SW1 interface GigabitEthernet0/1 spanning-tree portfast spanning-tree bpduguard enable
Why this answer
PortFast allows an access port to skip STP listening/learning and transition immediately to forwarding. BPDU Guard protects against STP loops by error-disabling the port if a BPDU is received, which would indicate an unauthorized switch connection.
Exam trap
Be careful to distinguish between interface-level and global commands for PortFast and BPDU Guard. Also, remember that BPDU Guard uses 'bpduguard enable' (not 'disable') and is different from Root Guard ('guard root').
Why the other options are wrong
The specific factual error is that global commands affect all ports, not a single interface.
The specific factual error is confusing Root Guard with BPDU Guard; they serve different purposes.
The specific factual error is using the 'disable' keyword instead of 'enable' to activate BPDU Guard.