Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

Source Interface

Direct answer

The SPAN source interface (or VLAN) is the traffic you want to capture, selected with monitor session <n> source interface <if> [rx|tx|both].

When to use this

Use it when choosing which ports or VLANs to mirror for a capture.

First 30 seconds

1. The SPAN source defines mirrored ports or VLANs.

2. Don't mix source and destination.

3. Trunk sources include tags (encapsulation replicate).

4. Keep scope minimal.

5. Many sources may oversubscribe.

Operational verification

source ports/VLANs → mirror → destination

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 · Cisco IOS XE
Scope / prerequisiteUse it when choosing which ports or VLANs to mirror for a capture.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

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

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

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Verification and what it shows Verify boundary

Verify the monitor session source, direction and operational state while generating a known test flow through that interface. Compare source counters with capture timestamps and expected MAC/IP tuple. Absence from a SPAN capture shows little until source/direction/session are confirmed correct; presence shows observation at that switch boundary only.

Step 2 Observation → implication → next check Narrow the fault

Observation → implication → next check: an empty capture first requires verifying the exact source interface and RX/TX direction. Frames in only one direction may be expected from direction selection, not loss. If source counters increment but SPAN remains empty, inspect session state and destination; if SPAN has frames, move to packet content and forwarding evidence.

Step 3 Common mistakes Narrow the fault
  • Too many source ports for one destination.
  • Source VLAN including the destination port.
Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1
Command lookup Jump straight to Cisco syntax
Key points
  • The SPAN source can be one or more interfaces or VLANs.
  • You choose rx, tx or both for each source.
  • Mirroring too many sources can oversubscribe the destination port.
Key checks
  • show monitor session <n> — source interfaces/VLANs
ReferenceWhy it matters2 sections · depth on demand

When to use it

Use these tools to feed analyzers while explicitly controlling source, direction, destination and transport capacity.

How it works in operation

A SPAN source interface defines which ingress and/or egress frames are copied into the monitor session. Direction matters: RX observes frames entering the switch on the source, TX observes frames leaving it, and both can duplicate traffic seen in other capture points. Source selection does not alter the original forwarding decision.

ReferenceImportant terms & boundaries2 sections · depth on demand

In depth

SPAN sources: which ports or VLANs are mirrored, and in which direction

The Catalyst 9300 SPAN guide documents monitor session <n> source with an interface or a VLAN, and a direction of both (default), rx or tx. One session can have several sources, but cannot mix port sources with VLAN sources.

C9300(config)# monitor session 1 source interface Gi1/0/10 - 12 rx
C9300(config)# monitor session 1 source interface Po2 both
C9300(config)# monitor session 1 filter vlan 20
C9300(config)# monitor session 2 source vlan 30 rx
C9300# show monitor session all
Session 1
---------
Type                     : Local Session
Source Ports             :
    RX Only              : Gi1/0/10-12
    Both                 : Po2
Filter VLANs             : 20

Source types

SourceMirrorsNote
Access portAll frames on the portSimplest case
Trunk portAll VLANs on the trunkUse a VLAN filter to narrow it down
EtherChannelAll member linksMirror the port-channel, not the members
VLAN (VSPAN)Traffic on all ports in the VLANUsually rx only, to avoid duplicates

Choosing sources wisely

GoalSource
One server's trafficThe server's access port, both
Traffic between two VLANsThe SVI's VLAN as source, or the uplink
Everything to the internetThe uplink to the firewall, both
IDS feedUplinks or VLANs, rx to avoid seeing each frame twice

Duplicates and drops

Mirroring two ports that carry the same traffic (both ends of a flow on one switch, or VLAN both sources) gives duplicates. The analyser can deduplicate, but they waste destination bandwidth. When the total source rate exceeds the destination port speed, mirrored frames are dropped. Production traffic is not affected.

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 (port mirroring) copies traffic from chosen ports or VLANs to a port where an analyser is connected, without interrupting the original traffic. The source defines what is copied. Choosing narrow sources matters, because the copy has to fit through a single destination port.

SPAN source interfaces (or VLANs) are the traffic being copied.

monitor session 1 source interface Gi1/0/1 - 2 both
monitor session 1 source vlan 20 rx
monitor session 1 filter vlan 20      ! with trunk sources
show monitor session 1 detail

Limits vary per platform (number of sessions and source ports). Mirroring many busy sources to one destination oversubscribes it — the analyser then sees drops that are not in the real traffic.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
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 → Source Interface. 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%
Confirmation

Confirm action

Continue?