Soru

Zorluk: OrtaSTP Port States and PortFast Benefits

An administrator observes that workstations connected to switch port GigabitEthernet0/12 experience a 30-second delay before successfully acquiring an IP address from a DHCP server upon initial link up. The switch is running classic 802.1D Spanning Tree Protocol (STP). Which interface configuration command directly resolves this delay, and what is its operational effect on the port?

  1. Enable `spanning-tree portfast`; it allows the access port to immediately transition from blocking to forwarding state upon link up, bypassing listening and learning states.Cevap
  2. B
    Enable `spanning-tree portfast trunk`; it should be configured on inter-switch trunk connections to eliminate convergence delays across the switch fabric.
  3. C
    Configure `spanning-tree vlan 1 priority 4095`; it reduces the port transition timers by adjusting the local bridge priority value.
  4. D
    Enable `spanning-tree portfast`; it completely disables BPDU transmission and reception on the interface to stop STP from monitoring the link.

Cevap

The command `spanning-tree portfast` resolves the issue because it allows an access interface connected to an end-user host to bypass the 15-second Listening and 15-second Learning states, transitioning directly to Forwarding state upon link up.
Enabling `spanning-tree portfast` on an access port connected to a workstation bypasses the standard 802.1D Listening (15 seconds) and Learning (15 seconds) STP states. The interface immediately enters the Forwarding state upon link up, allowing the host to successfully send DHCP requests without timing out.

Adım Adım Çözüm

1
Identify the cause of the 30-second delay during host initial boot.
Classic 802.1D STP transitions ports through Blocking → Listening (15s) → Learning (15s) → Forwarding (total 30s delay).
During the Listening and Learning states, data frames (including DHCP Discover messages) are dropped by the switch port.
2
Determine the appropriate Cisco IOS feature for edge ports connected to hosts.
Cisco STP PortFast immediately places edge access ports into the Forwarding state upon link activation.
Host workstations do not create Layer 2 loops, so waiting through convergence states is unnecessary and causes application/DHCP timeouts.

Anahtar Kavram

STP PortFast Benefits and Operation
Bu soruyu puanla