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

PDF

Local SPAN rate limit

Updated: February 5, 2026

Overview

This section explains the local SPAN rate limit feature, which enables rate limiting at the session level using traffic classes.

Local SPAN rate limit is a traffic mirroring feature that

  • takes place at the session level, not at source interface level

  • configures rate limiting when you configure a traffic class in local SPAN session

  • uses traffic class to shape traffic on an egress interface, and

  • applies a Quality of Service (QoS) policy to the egress interface over which the router send the mirrored traffic.

Example

This example provides details on how to configure the local SPAN rate limit. In this example, the class, TC5, matches with the class that you configured in the monitor session.

Router# monitor-session mon2 ethernet
destination interface HundredGigE0/1/0/19
traffic-class 5
class-map match-any TC5
match traffic-class 5
end-class-map
policy-map shape-foo
class TC5 /* This has to match the class that was configured on monitor session */
shape average percent 15
class class-default
interface HundredGigE0/1/0/19 /* This is the egress interface over which mirrored packets
are sent */
service-policy output shape-foo