Use it when choosing which ports or VLANs to mirror for a capture.
Source Interface
The SPAN source interface (or VLAN) is the traffic you want to capture, selected with monitor session <n> source interface <if> [rx|tx|both].
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.
source ports/VLANs → mirror → destination
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & 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.
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 · 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.
- 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.
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
| Source | Mirrors | Note |
|---|---|---|
| Access port | All frames on the port | Simplest case |
| Trunk port | All VLANs on the trunk | Use a VLAN filter to narrow it down |
| EtherChannel | All member links | Mirror the port-channel, not the members |
| VLAN (VSPAN) | Traffic on all ports in the VLAN | Usually rx only, to avoid duplicates |
Choosing sources wisely
| Goal | Source |
|---|---|
| One server's traffic | The server's access port, both |
| Traffic between two VLANs | The SVI's VLAN as source, or the uplink |
| Everything to the internet | The uplink to the firewall, both |
| IDS feed | Uplinks 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.
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.
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 → 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%