PortFast

  • If you’ve ever wondered what does Spanning Tree PortFast do in a real network ? You're in the right place.

    Illustration of Port Fast in Spanning Tree Protocol (STP) for CCNA training.

    Figure 1 – PortFast skips STP states for immediate forwarding

    Spanning Tree PortFast is a Cisco feature that allows a switch port to skip the usual STP Listening and Learning states and jump straight to the Forwarding state.

    Without Spanning Tree PortFast

    By default, the Spanning Tree Protocol doesn't allow a PC connects to a switch port and send traffic right away.

    The Switch port must goes through Two Spanning Tree States:

    • Listening (During 15 seconds)

    • Learning (During 15 seconds)

    what does Spanning Tree PortFast do diagram showing switch bypassing listening and learning states

    Figure 2 – Without PortFast, the port waits 30 seconds before forwarding

    Only after that does the port move to Forwarding state and allow traffic. That means you get 30 seconds of delay before you device can send anything to the network...

    That's something we didnt want to occurs since everyone want to be able to send traffic right away when they are connected to the switch port.

    With Spanning Tree PortFast Enabled

    When PortFast is enabled, the switch port skips the Listening and Learning States and goes immediately to the Forwarding allowing device to send traffic as soon as they are connected to the Switch Port.

    Illustration of Port Fast in Spanning Tree Protocol (STP) for CCNA training.

    Figure 3 – With PortFast, the port forwards traffic immediately

    In simple words, that’s exactly what Spanning Tree PortFast does it bypasses the STP Listening and Learning stages and goes straight to the Forwarding State, allowing end devices to start forwarding traffic without delay.

    In the diagram above, PC1 is connected to port G0/2 on switch SW2.

    With PortFast enabled, that port goes directly to the Forwarding state instantly.
    No 15 seconds Listening state + 15 seconds Learning state, PortFast give immediate network access.

    Now that you understand what Spanning Tree PortFast does, let’s see how to configure it properly !

    Answer the question below