SPAN / RSPAN Reference
Cheat sheet · https://pcornel.dk/topic.php?topic=205
Answer
SPAN makes a switch copy the traffic of one or more ports or VLANs to another port where a capture device is connected. RSPAN does the same across switches, carrying the copies in a dedicated VLAN.
Remember
The destination port carries only copies — whatever is plugged in loses normal connectivity. VLAN tags and Layer 2 protocol frames are left out unless encapsulation replicate is set. An oversubscribed destination port drops copies silently. Remove the session afterwards.
First checks
show monitor session all— sources with direction, destination, encapsulation.show monitor session <n> detail— one session in full.show interfaces <destination>— state "monitoring", output drops.show vlan remote-span— RSPAN VLANs.
Commands
show monitor sessionip addressshow vlan remote-span
Verify in this order
session defined with the intended source and direction → destination port up and monitoring → (RSPAN: VLAN present end to end) → copies delivered without output drops → test traffic visible in the capture
Where it usually breaks
physical/link dependency → local object state → peer/control state → policy → forwarding/adjacency → end-to-end result
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=205