ICND2: Interconnecting Cisco Networking Devices Part 2 (legacy) — Question 33
Which command do you enter so that a port enters the forwarding state immediately when a PC is connected to it?
Answer options
- A. Switch(config)# spanning-tree portfast bpduguard default
- B. Switch(config)# spanning-tree portfast default
- C. Switch(config-if)# spanning-tree portfast trunk
- D. Switch(config-if)#no spanning-tree portfast
Correct answer: B
Explanation
The correct answer is B, as 'spanning-tree portfast default' enables PortFast on all ports, allowing them to enter the forwarding state immediately when a device is connected. Option A adds BPDU guard, which does not directly affect the immediate forwarding state. Option C is intended for trunk ports and does not apply to standard connections. Option D disables PortFast, preventing immediate forwarding.