Traffic Mirroring Configuration Guide for Cisco 8000 Series Routers, Cisco IOS XR Release

PDF

Configure local SPAN

Updated: February 5, 2026

Overview

Use this procedure to configure a local SPAN session by defining a destination interface and attaching it to specific source interfaces. It also describes how to verify the session status and view internal statistics to ensure successful traffic mirroring.

Use these steps to configure local SPAN.

Procedure

1.

Create a local SPAN session.

Example:

Router#configure
Router(config)#monitor-session mon1 ethernet
Router(config-mon)#destination interface HundredGigE0/1/0/0
Router(config-mon)#commit
Router(config-mon)#end
Router#
2.

Attach the SPAN session to an interface.

Example:

Router(config-mon)#interface HundredGigE0/1/0/2
Router(config-if)# monitor-session mon1 ethernet direction rx-only
Router(config-if-mon)# no shut
Router(config-if)#!
Router(config-if)#
Router(config-if)#interface Bundle-Ether1
Router(config-if)# monitor-session mon1 ethernet direction rx-only
Router(config-if-mon)# no shutdown
Router(config-if)#!
Router(config-if)#


Router:monitor(config-if)#interface HundredGigE0/1/0/14.100
Router:monitor(config-subif)# monitor-session mon1 ethernet direction rx-only
Router:monitor(config-if-mon)# no shut
Router:monitor(config-subif)#!
Router:monitor(config-subif)#
Router:monitor(config-subif)#interface Bundle-Ether1.1
Router:monitor(config-subif)# monitor-session mon1 ethernet direction rx-only
Router:monitor(config-if-mon)# no shut
Router:monitor(config-subif)#!
Router:monitor(config-subif)#commit
3.

Verify the configuration.

Example:

Router#show monitor-session status
Monitor-session mon1
Destination interface HundredGigE0/1/0/0
=========================================
Source Interface Dir Status
--------------------- ---- ----------------
Hu0/1/0/2 Rx Operational
Hu0/1/0/14.100 Rx Operational
BE1 Rx Operational
BE1.1 Rx Operational
4.

Execute the show monitor-session status internal command for session statistics.

Example:

Router#show monitor-session status internal
Thu Aug 13 20:05:23.478 UTC
Information from SPAN Manager and MA on all nodes:
Monitor-session mon1 (ID 0x00000001) (Ethernet)
SPAN Mgr: Destination interface HundredGigE0/1/0/0 (0x00800190)
Last error: Success
0/1/CPU0: Destination interface HundredGigE0/1/0/0 (0x00800190)
0/RP0/CPU0: Destination interface HundredGigE0/1/0/0 (0x00800190)
Information from SPAN EA on all nodes:
Monitor-session 0x00000001 (Ethernet)
0/1/CPU0: Name 'mon1', destination interface HundredGigE0/1/0/0 (0x00800190)
Platform, 0/1/CPU0:
Monitor Session ID: 1
Monitor Session Packets: 32
Monitor Session Bytes: 4024
0/2/CPU0: Name 'mon1', destination interface HundredGigE0/1/0/0 (0x00800190)
Platform, 0/2/CPU0:
Monitor Session ID: 1
Monitor Session Packets: 0
Monitor Session Bytes: 0