Pcornel
Networking · Network Assurance

SPAN

Cheat sheet · https://pcornel.dk/topic.php?topic=736

Back to the Topic

Answer

SPAN copies the traffic of chosen ports or VLANs on a switch to a destination port on the same switch, where an analyser captures it.

Remember

The destination port stops forwarding normal traffic. Copying both directions of a busy port can exceed the destination's speed, and the excess is dropped silently. A VLAN source copies every port in that VLAN.

First checks

  • show monitor session all — every session with sources, direction and destination.
  • show monitor session <n> detail — full detail, including VLANs and filters.
  • show vlan remote-span — VLANs marked for RSPAN.
  • show interfaces <destination> counters — whether copies are being sent out.
  • show interfaces trunk — the RSPAN VLAN carried on the trunks.

Commands

show monitor session all
Shows configured SPAN/RSPAN source and destination details.
monitor session <id> source interface <interface> rx
Copy received traffic from a source interface into a SPAN session.
monitor session <id> source interface <interface> tx
Copy transmitted traffic from a source interface into a SPAN session.
monitor session <id> source interface <interface> both
Copy traffic in both directions from a source interface into a SPAN session.
monitor session <id> source vlan <vlan>
Copy traffic from a VLAN into a SPAN session.
monitor session <id> destination interface <interface>
Send SPAN copies to a local destination port.
show monitor session
Display SPAN, RSPAN and ERSPAN sessions.

Verify in this order

session configured → source ports or VLANs and direction → (RSPAN VLAN carried / ERSPAN GRE tunnel reachable) → destination port up → copies leave the destination → analyser captures them

Where it usually breaks

physical/link dependency → local object state → peer/control state → policy → forwarding/adjacency → end-to-end result

SPAN · operational reference

SPAN elementMeaning
SourceInterface/VLAN being observed
RX/TX/BothMirrored direction
DestinationLocal analyzer port
OversubscriptionMirror copy may drop without production loss

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=736

Confirmation

Confirm action

Continue?