Use it when the analyser can be connected to the same switch as the traffic you need to see.
SPAN
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.
1. show monitor session <n> detail — right source, direction both, right destination?
2. Destination port up, and its output counters rising?
3. Analyser sees only one direction → the session is rx or tx only.
4. Packets missing under load → destination oversubscribed; narrow the source.
5. Remove the session when done: no monitor session <n>.
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
The capture is empty, only shows one direction, or misses packets under load.
Possible stored cause: The wrong source, direction or VLAN is configured, the session is down, or the destination port is oversubscribed.Validate traffic exists on the source and that the destination/collector actually receives the mirrored packets.
Continue only after interpreting the current observation.Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
monitor session <id> source interface <interface> rxPrimary Commands
Configuration and operational commands for this Topic.
monitor session <id> source interface <interface> rxReferenceCopy received traffic from a source interface into a SPAN session.
Use when: Use this command at the SPAN / RSPAN / ERSPAN boundary in the documented evidence chain.
Quick note: Cisco IOS / IOS XE first. A configured/up session does not prove the analyzer receives every packet or that mirroring is lossless.
Cisco IOS / IOS XE · mixedmonitor session <id> source interface <interface> txReferenceCopy transmitted traffic from a source interface into a SPAN session.
Use when: Use this command at the SPAN / RSPAN / ERSPAN boundary in the documented evidence chain.
Quick note: Cisco IOS / IOS XE first. A configured/up session does not prove the analyzer receives every packet or that mirroring is lossless.
Cisco IOS / IOS XE · mixedmonitor session <id> source interface <interface> bothReferenceCopy traffic in both directions from a source interface into a SPAN session.
Use when: Use this command at the SPAN / RSPAN / ERSPAN boundary in the documented evidence chain.
Quick note: Cisco IOS / IOS XE first. A configured/up session does not prove the analyzer receives every packet or that mirroring is lossless.
Cisco IOS / IOS XE · mixedmonitor session <id> source vlan <vlan>ReferenceCopy traffic from a VLAN into a SPAN session.
Use when: Use this command at the SPAN / RSPAN / ERSPAN boundary in the documented evidence chain.
Quick note: Cisco IOS / IOS XE first. A configured/up session does not prove the analyzer receives every packet or that mirroring is lossless.
Cisco IOS / IOS XE · mixedmonitor session <id> destination interface <interface>ReferenceSend SPAN copies to a local destination port.
Use when: Use this command at the SPAN / RSPAN / ERSPAN boundary in the documented evidence chain.
Quick note: Cisco IOS / IOS XE first. A configured/up session does not prove the analyzer receives every packet or that mirroring is lossless.
Cisco IOS / IOS XE · mixedShow Commands
Read-only Cisco show commands for confirming state, narrowing a fault and interpreting the current boundary.
show monitor sessionShowDisplay SPAN, RSPAN and ERSPAN sessions.
Use when: Use this command at the SPAN / RSPAN / ERSPAN boundary in the documented evidence chain.
Quick note: Cisco IOS / IOS XE first. A configured/up session does not prove the analyzer receives every packet or that mirroring is lossless.
Cisco IOS / IOS XE · mixedshow monitor session allShowShows configured SPAN/RSPAN source and destination details.
Cisco IOS XE · mixedVerification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
The capture is empty, only shows one direction, or misses packets under load.
Step 1 First 30 seconds Verify boundary
Immediate answer: Verify source, direction, destination session state and expected frames at the analyzer before interpreting absence.
Verification chain: Source interface/VLAN → SPAN session → destination port/tunnel → analyzer capture → protocol interpretation
Stop condition: A configured session does not show the analyzer receives every intended frame.
Step 2 Verification and output interpretation Verify boundary
Use show monitor session to confirm source objects, direction, destination interface and session state. Verify the destination interface is operating in SPAN mode and the analyzer sees traffic that is known to cross the source. Compare expected packet direction with capture timestamps and source counters. A capture that is empty while source traffic is present should first prompt verification of session source/direction and destination cabling before conclusions about the production flow. When loss-sensitive evidence matters, compare capture rate with source interface counters and consider oversubscription; SPAN can legitimately omit mirrored packets under pressure.
Evidence · 2 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
The official Cisco source documents this command in a bounded Cisco product/release or feature context.
command output · Documented exampleSPAN / RSPAN / ERSPAN local healthy-state checkpointThe expected object, scope, state and counters match a controlled test.
Subtopics
Go one level deeper into this subject.
The SPAN source interface (or VLAN) is the traffic you want to capture, selected with monitor session <n> source interface <if> [rx|tx|both].
Subtopic Destination InterfaceThe SPAN destination interface is the port where the analyzer connects; it stops behaving as a normal switch port while it is the destination and can drop traffic if it is oversubscribed.
Subtopic RXSPAN direction rx mirrors only traffic received on the source port (ingress).
Subtopic TXSPAN direction tx mirrors only traffic transmitted out of the source port (egress).
Subtopic BothSPAN direction both mirrors received and transmitted traffic of the source port, giving a complete view of conversations through it.
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.
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.
ReferenceWhat it is1 section · depth on demand
What it is
SPAN mirrors locally, RSPAN transports mirrored frames over a dedicated VLAN, and ERSPAN carries mirrored traffic over an IP/GRE path.
Path: Networking → Network Assurance → SPAN. Local intent: SPAN: Source Interface, Destination Interface, RX, TX.
ReferenceImportant terms & boundaries4 sections · depth on demand
In depth
SPAN: local port mirroring
SPAN copies traffic from source ports or VLANs to a destination port where an analyser listens. Cisco's Catalyst 9000 SPAN technote shows the configuration: monitor session 1 source interface ... and monitor session 1 destination interface ..., verified with show monitor session all, which lists the session type, source ports with direction, destination ports, encapsulation and whether ingress forwarding is enabled.
SW1(config)# monitor session 1 source interface GigabitEthernet1/0/5 both
SW1(config)# monitor session 1 source vlan 110 rx
SW1(config)# monitor session 1 filter packet-type good rx
SW1(config)# monitor session 1 destination interface GigabitEthernet1/0/48 encapsulation replicate
SW1# show monitor session 1
Session 1
---------
Type : Local Session
Source Ports :
Both : Gi1/0/5
Source VLANs :
RX Only : 110
Destination Ports : Gi1/0/48
Encapsulation : Replicate
Ingress : Disabled
Sources and directions
| Source | Direction |
|---|---|
| Interface | rx, tx or both (default both) |
| VLAN | Usually rx to avoid duplicates |
| EtherChannel | The port-channel or individual members |
Destination port behaviour (Cisco SPAN FAQ)
| Behaviour | Consequence |
|---|---|
| Transmits only mirrored traffic | The analyser isn't on the normal network through that port |
| No spanning tree or other Layer 2 protocols | Don't use a destination port as a normal uplink |
| Ingress forwarding optional | Enable carefully, or the analyser can create loops |
| Can be oversubscribed | Mirroring both directions of a busy 1 Gbit/s port can exceed a 1 Gbit/s destination |
Practical points
| Point | Reason |
|---|---|
| Filter to what you need | Fewer drops at the destination |
encapsulation replicate | Keep VLAN tags and Layer 2 protocol frames |
| Remove sessions after use | Destination ports don't pass normal traffic |
| Use Embedded Packet Capture for quick captures | No extra hardware needed |
For analysers on another switch use RSPAN, and across routed networks ERSPAN.
Documented example, not captured output.
Quick reference
SPAN (Switched Port Analyzer) copies traffic from source ports or VLANs to a destination port on the same switch, where a packet analyser or IDS is connected. It is the standard way to capture traffic without changing cabling.
monitor session 1 source interface Gi1/0/10 both
monitor session 1 destination interface Gi1/0/48
show monitor session 1
Documented example, not captured output.
The destination port stops forwarding normal traffic, and mirroring more traffic than the destination can carry drops copies silently. Embedded Packet Capture is an alternative that captures directly on the switch.
State model and protocol mechanics
Switched Port Analyzer creates a local mirror session in which one or more source interfaces or VLANs are copied to a dedicated destination interface on the same switching system. Source direction can be receive, transmit or both, and that choice determines which forwarding events are mirrored. The destination port is repurposed for analyzer traffic and normally does not behave as an ordinary access/trunk forwarding port while configured as a SPAN destination. Mirroring happens inside the switching platform and is subject to implementation and capacity limits. If aggregate mirrored traffic exceeds destination bandwidth or internal replication capacity, analyzer copies can be dropped even though production forwarding remains healthy.
Limits and common misconceptions
SPAN is not an inline tap and not a guarantee of lossless capture. The mirrored copy can be dropped without affecting the original packet, so absence from a SPAN capture does not show a source packet never existed. Destination-port behavior is special while the session is configured, and attempting to use it for normal switching can create misleading expectations. A local SPAN session cannot directly traverse arbitrary Layer 2/Layer 3 paths; RSPAN or ERSPAN solve different transport problems. Packet timestamps are also capture-system evidence, not necessarily original forwarding timestamps. Use SPAN to observe traffic, but preserve interface counters, control-plane state and other device evidence when packet-loss conclusions must be defensible.
ReferenceConfiguration & state1 section · depth on demand
Design and configuration model
Define the exact observation question before selecting sources. Use a source interface when the traffic of interest is tied to one edge or uplink, or a source VLAN when broader local visibility is required and supported. Choose RX, TX or both consciously so the capture does not double traffic unnecessarily. Select a destination port with enough capacity and connect only the analyzer/capture device expected to receive mirrored frames. Avoid using SPAN as a permanent blanket mirror of high-volume links because oversubscription and operational ambiguity increase rapidly. Document whether encapsulation/VLAN tags are preserved by the configured platform/session behavior; analyzer interpretation depends on the copy format the switch actually produces.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Network Assurance → SPAN. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.cisco.com/c/en/us/support/ios-nx-os-software/ios-xe-17/series.html · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
SPAN / RSPAN / ERSPAN evidence chain
Configuration, operational state, counters and downstream proof remain separate.
| Boundary | Question | Evidence | Does not prove |
|---|---|---|---|
| Definition | What is configured or intended? | running configuration / controller policy | live operation |
| Local state | Is the feature active at the expected scope? | show monitor session | remote success |
| Counters | Did controlled traffic or an event reach this stage? | scoped counters/timestamps | complete return path |
| Next boundary | What consumes or transports this state? | source packet/direction → mirror session → local port or RSPAN VLAN or ERSPAN/GRE → analyzer capture | application success |
SPAN · operational reference
Compact state and interpretation boundaries for fast lookup.
| SPAN element | Meaning |
|---|---|
| Source | Interface/VLAN being observed |
| RX/TX/Both | Mirrored direction |
| Destination | Local analyzer port |
| Oversubscription | Mirror copy may drop without production loss |