Configuring a remote mirror service

The source and destination are configured on different routers for remote mirroring. Note that mirror source and mirror destination parameters must be configured under the same service ID context.

Note:

Remote mirroring using MPLS SDP is supported on all 7210 SAS platforms as described in this document, except those operating in access-uplink mode.

The mirror-source commands are used as traffic selection criteria to identify traffic to be mirrored at the source. For example, use the port port-id [lag-id] {[egress] [ingress]} and mac-filter mac-filter-id entry entry-id [entry-id …] commands.

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

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 mirror-dest commands are used to specify where the mirrored traffic is to be sent, the forwarding class, and the size of the packet. Use the following syntax to configure mirror destination parameters.

config>mirror# 
    mirror-dest service-id 
        [create] [type <mirror-type>][mirror-source-type <mirror-source-type>]
            description string
            fc fc-name [profile <profile>]
            remote-source
                far-end ip-address [vc-id vc-id] [ing-svc-label ingress-vc-label|tldp]
            sap sap-id create
            no shutdown

The following figure shows the mirror destination, which is on ALA-A, configuration for mirror service 1216. This configuration specifies that the mirrored traffic coming from the mirror source (10.10.0.91) is to be directed to SAP /1/58 and states that the service only accepts traffic from far end 10.10.0.92 (ALA-B) with an ingress service label of 5678. When a forwarding class is specified, then all mirrored packets transmitted to the destination SAP or SDP override the default (be) forwarding class.

Figure: Remote mirrored service tasks

The following example displays the CLI output showing the configuration of remote mirrored service 1216. The traffic ingressing and egressing port 1/1/60 on 10.10.0.92 (ALA-B) will be mirrored to the destination SAP 1/1/58:0 on ALA-A.

Example

The following is a sample remote mirror destination configuring the front panel port with mirroring application.

*A:7210SAS>config>mirror# info 
----------------------------------------------
        mirror-dest 23 mirror-source-type remote create
            description "Added by createMirrorDestination 23" 
            fc be 
            remote-source
                far-end 2.2.2.2 ing-svc-label 14000
            exit 
            sap 1/1/4 create 
            exit 
            no shutdown
        exit 
        mirror-dest 1000 create
            fc be 
            spoke-sdp 200:1000 create
                egress
                    vc-label 15000
                exit
                no shutdown
            exit
            no shutdown
        exit 
----------------------------------------------
*A:7210SAS>config>mirror# /show system internal-loopback-ports 

===============================================================================
Internal Loopback Port Status
===============================================================================
Port                Loopback            Application         Service
Id                  Type                                    Enabled
-------------------------------------------------------------------------------
1/1/9               Physical            Dot1q-Mirror        No
===============================================================================

The following is a sample mirror destination configuration output for mirror service 1216 on ALA-A.

Example
*A:ALA-A>config>mirror# info
----------------------------------------------
        mirror-dest 1000 type ether mirror-source-type remote create
            description "Receiving mirror traffic from .91"
            remote-source
                far-end 2.2.2.2 tldp
            exit
            sap 1/1/21:21 create
                egress
                    qos 1
                exit
            exit
            no shutdown
        exit
----------------------------------------------
*A:ALA-A>config>mirror#

The following is a sample remote mirror destination output configured on ALA-B.

Example
*A:ALA-B>config>mirror# info
----------------------------------------------
mirror-dest 2000 type ether mirror-source-type local create
            no description
            no service-name
            fc be
            no remote-source
            spoke-sdp 200:2000 create
                egress
                    no vc-label
                exit
                no shutdown
            exit
            no shutdown
        exit
----------------------------------------------
*A:ALA-B>config>mirror#

The following is a sample mirror source configuration output for ALA-B.

Example
*A:ALA-B# show debug mirror
debug
    mirror-source 1000
        no shutdown
    exit
    mirror-source 2000
        no shutdown
    exit
exit
*A:ALA-B#

The following is a sample SDP configuration output from ALA-A to ALA-B (SDP 2) and the SDP configuration output from ALA-B to ALA-A (SDP 4).

Example
*A:ALA-A>config>service>sdp# info
---------------------------------------------
description "MPLS-10.10.0.91"
far-end 10.10.0.01
signalling tldp
no shutdown
---------------------------------------------
*A:ALA-A>config>service>sdp#


*A:ALA-B>config>service>sdp# info
----------------------------------------------
description "MPLS-10.10.20.92"
far-end 10.10.10.103
signalling tldp
no shutdown
----------------------------------------------
*A:ALA-B>config>service>sdp#