Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

SPAN

Direct 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.

When to use this

Use it when the analyser can be connected to the same switch as the traffic you need to see.

First 30 seconds

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>.

Operational verification

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

Failure signatureAnalyzer port connected to SPAN sees no or partial traffic

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.
Evidence · next step

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
Platform / version applicability
Cisco IOS / IOS XE
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformCisco IOS / IOS XE · IOS/IOS XE · Cisco IOS XE
Key commandmonitor session <id> source interface <interface> rx
Scope / prerequisiteUse it when the analyser can be connected to the same switch as the traffic you need to see.
Show · 2Reference · 5
What next?3 suggested next steps
Child topics (this level)5
Catalog command links7
Evidence2
On this pageJump to a specific section
Cisco IOS / IOS XE first

Primary Commands

Configuration and operational commands for this Topic.

Verification

Show Commands

Read-only Cisco show commands for confirming state, narrowing a fault and interpreting the current boundary.

Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

2 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 references

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.

other · 1command output · 1
Command lookup Jump straight to Cisco syntax
Drill down

Subtopics

Go one level deeper into this subject.

Key points

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.

Key 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.
ReferenceWhat it is1 section · depth on demand
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

SourceDirection
Interfacerx, tx or both (default both)
VLANUsually rx to avoid duplicates
EtherChannelThe port-channel or individual members

Destination port behaviour (Cisco SPAN FAQ)

BehaviourConsequence
Transmits only mirrored trafficThe analyser isn't on the normal network through that port
No spanning tree or other Layer 2 protocolsDon't use a destination port as a normal uplink
Ingress forwarding optionalEnable carefully, or the analyser can create loops
Can be oversubscribedMirroring both directions of a busy 1 Gbit/s port can exceed a 1 Gbit/s destination

Practical points

PointReason
Filter to what you needFewer drops at the destination
encapsulation replicateKeep VLAN tags and Layer 2 protocol frames
Remove sessions after useDestination ports don't pass normal traffic
Use Embedded Packet Capture for quick capturesNo extra hardware needed

For analysers on another switch use RSPAN, and across routed networks ERSPAN.

Documented example, not captured output.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

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
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docCisco IOS / IOS XE Current documentation reviewed 2026-09-14

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%
Terminology layer

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.

Aliases that resolve here
SPAN port mirrorRSPAN VLANERSPAN GRE
Embedded reference data

Quick lookup tables

SPAN / RSPAN / ERSPAN evidence chain

Configuration, operational state, counters and downstream proof remain separate.

BoundaryQuestionEvidenceDoes not prove
DefinitionWhat is configured or intended?running configuration / controller policylive operation
Local stateIs the feature active at the expected scope?show monitor sessionremote success
CountersDid controlled traffic or an event reach this stage?scoped counters/timestampscomplete return path
Next boundaryWhat consumes or transports this state?source packet/direction → mirror session → local port or RSPAN VLAN or ERSPAN/GRE → analyzer captureapplication success

SPAN · operational reference

Compact state and interpretation boundaries for fast lookup.

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

Confirm action

Continue?