• Encapsulated Remote SPAN (ERSPAN) is the most advanced form of traffic mirroring that you need to understand for the CCNP ENCOR exam.

    With Local SPAN, everything happens on a single switch.
    With RSPAN, traffic can travel across switches using a dedicated VLAN.

    erspan topology

    Figure 1 - ERSPAN Topology

    But what if the traffic collector is located in a different IP network?
    This is where ERSPAN becomes useful.

    Why ERSPAN Is Needed

    ERSPAN allows you to capture traffic on one device and send it to a traffic collector located in another network.

    This situation is common in large enterprise environments where:

    • The source traffic is in a remote site

    • The traffic collector is centralized in a data center

    • Layer 2 connectivity is not available between the two

    ERSPAN traffic over IP network

    Figure 2 – ERSPAN traffic overview

    Unlike RSPAN, ERSPAN does not rely on a VLAN.
    Instead, it uses Layer 3 routing.

    Answer the question below

    At which layer does ERSPAN operate?

    How ERSPAN Works

    To make this possible, the source switch encapsulates the mirrored traffic inside a GRE tunnel.

    The original Layer 2 frame is wrapped inside:

    • A GRE header

    • An outer IP header

    This allows the mirrored traffic to be routed across Layer 3 networks.

    ERSPAN GRE encapsulation on source switch

    Figure 3 – ERSPAN GRE encapsulation

    Once encapsulated, the GRE packet is forwarded through the IP network like any other routed packet.
    As long as IP connectivity exists between the source and the destination, ERSPAN traffic can reach the traffic collector.

    GRE-encapsulated ERSPAN traffic over IP network

    Figure 4 – ERSPAN GRE transport

    Answer the question below

    Which protocol encapsulates ERSPAN traffic?