Configuring a local mirror service

To configure a local mirror service, the source and destinations must be located on the same router. Note that 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. Each of these criteria are independent. For example, use the debug>mirror-source>port {port-id | lag lag-id} {[egress] [ingress]} command and debug>mirror-source ip-filter ip-filter-id entry entry-id [entry-id…] command to capture (mirror) traffic that matches a specific IP filter entry and traffic ingressing and egressing a specific port. A filter must be applied to the SAP or interface if only specific packets are to be mirrored.

Use the following syntax to configure one or more mirror source parameters.

The mirror-dest commands are used to specify where the mirrored traffic is to be sent. Use the following syntax to configure mirror destination parameters.

config>mirror mirror-dest service-id [type {ether}] [create]
        description string
        sap sap-id [create]
        no shutdown
debug# mirror-source service-id
        ip-filter ip-filter-id entry entry-id [entry-id …]
        ipv6-filter ip-filter-id entry entry-id [entry-id …]
        mac-filter mac-filter-id entry entry-id [entry-id …]
        port {port-id|lag lag-id} {[egress][ingress]}
        sap sap-id {[ingress]}
        no shutdown

The following is a sample local mirrored service using a NULL SAP configuration output. On ALA-A, mirror service 103 is mirroring traffic matching IP filter 2, entry 1 as well as egress and ingress traffic on port 1/1/23 and sending the mirrored packets to SAP 1/1/24.

Example
*A:ALA-A>config>mirror# info
----------------------------------------------
        mirror-dest 103 create

            sap 1/1/24 create




            exit
            no shutdown
        exit
----------------------------------------------
*A:ALA-A>config>mirror# 

The following is a sample local mirrored service using a dot1q SAP configuration output. User needs to configure a front-panel port for use with the mirroring application when the mirror destination is a Dot1q SAP or a Q1.* SAP, as follows.

Example
*A:ALA-A>config>system> 
------------------------------------------------------
loopback-no-svc-port mirror 1/1/14
-------------------------------------------------------

*A:ALA-A>config>mirror# info
----------------------------------------------
mirror-dest 103 create
sap 1/1/10:100 create
exit
no shutdown
exit
----------------------------------------------
*A:ALA-A>config>mirror#
Example

The following is sample debug mirroring information.

*A:ALA-A>debug>mirror-source# show debug mirror
debug
    mirror-source 103 
no shutdown

        port 1/1/23 ingress

ip-filter 2 entry 1
    exit
exit
*A:ALA-A>debug>mirror-source# exit