Configuring a Local Mirror Service

To configure a local mirror service, the source and destinations must be located on the same router. Local mirror source and mirror destination components must be configured under the same service ID context.

The mirror-source commands are used as traffic selection criteria to identify traffic to be mirrored at the source.

The mirror-dest commands are used to specify where the mirrored traffic is to be sent, the forwarding class, and the size of the packet.

The following output shows an example of a local mirrored service. On SAR-1, mirror service 103 is mirroring egress and ingress traffic on port 1/1/24 and sending the mirrored packets to SAP 1/1/25:

*A:SAR-1>config>mirror# info
----------------------------------------------
        mirror-dest 103 create
            sap 1/1/25:0 create
                egress
                    qos 1
                exit
            exit
            no shutdown
        exit
----------------------------------------------
*A:SAR-1>config>mirror# 

The following output shows debug mirroring information:

*A:SAR-1>show debug mirror
----------------------------------------------
        debug
            mirror-source 103 
                no shutdown
                port 1/1/24 egress ingress
            exit
        exit
----------------------------------------------
*A:SAR-1>debug>mirror-source# exit