4.3 Configure SPAN, RSPAN and ERSPAN
ENCOR 350-401 v1.2 · 4.0 Network Assurance
To analyse traffic you need a copy of it. SPAN copies traffic from ports or VLANs to a local port, RSPAN carries the copy across switches in a dedicated VLAN, and ERSPAN carries it across a routed network inside GRE. ENCOR expects you to configure all three.
What you must know
- Configure local SPAN with sources (ports, VLANs, direction) and a destination port.
- Configure RSPAN with a remote-span VLAN on source and destination switches.
- Configure ERSPAN with a source session, an ID and a GRE destination.
- Know the limits: oversubscription, destination ports carrying no normal traffic.
SPAN, RSPAN and ERSPAN
! Local SPAN on SW1
monitor session 1 source interface GigabitEthernet1/0/5 both
monitor session 1 destination interface GigabitEthernet1/0/24
!
! RSPAN: source switch SW1
vlan 999
remote-span
monitor session 2 source vlan 10 rx
monitor session 2 destination remote vlan 999
! RSPAN: destination switch SW2
monitor session 2 source remote vlan 999
monitor session 2 destination interface GigabitEthernet1/0/24
!
! ERSPAN on a router or Catalyst 9000
monitor session 3 type erspan-source
source interface GigabitEthernet0/1
destination
erspan-id 10
ip address 10.0.50.60
origin ip address 1.1.1.1RSPAN keeps the copy at Layer 2 across trunks (1); ERSPAN wraps it in GRE so it can cross routers (2). The analyser sees the original frames either way.
Limits
- A destination port only sends the copies; it does not forward normal traffic or take part in STP.
- Mirroring both directions of a busy port can exceed the destination port's speed: copies are dropped.
- The RSPAN VLAN must be created with
remote-spanon every switch it crosses and allowed on the trunks. - ERSPAN adds GRE overhead; raise the MTU or accept truncated copies.
Commands
show monitor session all | Every session with sources, direction and destination. |
show vlan remote-span | VLANs marked as RSPAN VLANs. |
show monitor session 3 detail | ERSPAN details: ID, destination and origin addresses. |
Exam traps
- SPAN destination ports carry no normal traffic.
- The RSPAN VLAN needs
remote-spanand must cross every trunk in the path. - ERSPAN uses GRE and crosses Layer 3.
bothdoubles the traffic sent to the destination.
Check yourself
- Which method mirrors traffic across a routed network?
- ERSPAN.
- What must be configured on the VLAN used by RSPAN?
remote-span, on every switch it crosses, and it must be allowed on the trunks.- Why can a SPAN destination drop copies?
- The mirrored traffic (especially rx and tx of a busy port) can exceed the destination port's bandwidth.
Labs
Try it live: See the traffic: Flexible NetFlow, SPAN and RSPAN