mirror commands

configure 
mirror 
apply-groups reference
apply-groups-exclude reference
mirror-dest service-name 
admin-state keyword
apply-groups reference
apply-groups-exclude reference
description description
encap 
endpoint named-item 
apply-groups reference
apply-groups-exclude reference
description description
revert-time (number | keyword)
fc keyword
pcap named-item 
apply-groups reference
apply-groups-exclude reference
file-url ts-url
router-instance named-item-64
remote-source 
far-end ipv4-address 
apply-groups reference
apply-groups-exclude reference
icb boolean
ing-vc-label number
label-signaling keyword
vc-id number
spoke-sdp sdp-bind-id 
admin-state keyword
apply-groups reference
apply-groups-exclude reference
control-word boolean
egress 
vc-label number
endpoint 
icb boolean
name reference
ingress 
vc-label number
sap sap 
apply-groups reference
apply-groups-exclude reference
egress 
ip-mirror 
mac 
destination mac-address
source mac-unicast-address
qos 
sap-egress 
policy-name reference
port-redirect-group 
group-name reference
instance number
endpoint reference
service-id number
slice-size number
spoke-sdp sdp-bind-id 
admin-state keyword
apply-groups reference
apply-groups-exclude reference
egress 
vc-label number
endpoint 
icb boolean
name reference
precedence (number | keyword)
type keyword
mirror-source service-name 
admin-state keyword
apply-groups reference
apply-groups-exclude reference
ip-filter reference 
apply-groups reference
apply-groups-exclude reference
entry number 
ipv6-filter reference 
apply-groups reference
apply-groups-exclude reference
entry number 
port mirror-source-port-lag-key 
apply-groups reference
apply-groups-exclude reference
egress boolean
ingress boolean
sap sap 
apply-groups reference
apply-groups-exclude reference
egress boolean
ingress boolean

mirror command descriptions

mirror

Synopsis Enter the mirror context
Context configure mirror
Treemirror
Introduced25.3.R2

Platforms

7705 SAR Gen 2

mirror-dest [service-name] service-name

Synopsis Enter the mirror-dest list instance
Contextconfigure mirror mirror-dest service-name
Treemirror-dest

Description

Commands in this context set up a packet mirroring service to allow mirrored packets to be directed locally (within the same router) or remotely (over the core of the network and with a far-end decode mirror encapsulation).

The mirror destination service is composed of destination options that define where the mirrored packets are sent. It also specifies whether the defined service will receive mirrored packets from a far-end router over the network core.

The mirror destination services are persistent between boots of the router and are included in the configuration saves.

Max. instances255
Introduced25.3.R2

Platforms

7705 SAR Gen 2

[service-name] service-name
Synopsis Administrative service name
Context configure mirror mirror-dest service-name
Treemirror-dest
String length1 to 64

Notes

This element is part of a list key.

Introduced25.3.R2

Platforms

7705 SAR Gen 2

admin-state keyword
Synopsis Administrative state of the service
Context configure mirror mirror-dest service-name admin-state keyword
Treeadmin-state
Optionsenable, disable
Default disable
Introduced25.3.R2

Platforms

7705 SAR Gen 2

description description
Synopsis Text description
Context configure mirror mirror-dest service-name description description
Treedescription
String length1 to 80
Introduced25.3.R2

Platforms

7705 SAR Gen 2

encap
Synopsis Enter the encap context
Context configure mirror mirror-dest service-name encap
Treeencap
Introduced25.3.R2

Platforms

7705 SAR Gen 2

endpoint [name] named-item
Synopsis Enter the endpoint list instance
Contextconfigure mirror mirror-dest service-name endpoint named-item
Treeendpoint
Max. instances2
Introduced25.3.R2

Platforms

7705 SAR Gen 2

[name] named-item
Synopsis Service endpoint name
Context configure mirror mirror-dest service-name endpoint named-item
Treeendpoint
String length1 to 32

Notes

This element is part of a list key.

Introduced25.3.R2

Platforms

7705 SAR Gen 2

revert-time (number | keyword)
Synopsis Time to wait before reverting back to primary spoke SDP
Contextconfigure mirror mirror-dest service-name endpoint named-item revert-time (number | keyword)
Treerevert-time
Range1 to 600
Unitsseconds
Options never, immediate
Defaultimmediate
Introduced25.3.R2

Platforms

7705 SAR Gen 2

fc keyword
Synopsis Forwarding class for destination traffic
Contextconfigure mirror mirror-dest service-name fc keyword
Treefc
Options

be – Best effort

l2 – Low 2 (best effort)

af – Assured forwarding (assured)

l1 – Low 1 (assured)

h2 – High 2 (high priority)

ef – Expedited forwarding (high priority)

h1 – High 1 (high priority)

nc – Network control (high priority)

Defaultbe
Introduced 25.3.R2

Platforms

7705 SAR Gen 2

pcap [session-name] named-item
Synopsis Enter the pcap list instance
Context configure mirror mirror-dest service-name pcap named-item
Treepcap
Max. instances1
Introduced25.3.R2

Platforms

7705 SAR Gen 2

[session-name] named-item
Synopsis PCAP session name
Context configure mirror mirror-dest service-name pcap named-item
Treepcap
String length1 to 32

Notes

This element is part of a list key.

Introduced25.3.R2

Platforms

7705 SAR Gen 2

file-url ts-url
Synopsis URL and file name for packet capture transfer
Contextconfigure mirror mirror-dest service-name pcap named-item file-url ts-url
Treefile-url
String length1 to 180
Introduced25.3.R2

Platforms

7705 SAR Gen 2

router-instance named-item-64
Synopsis Router name used for FTP transmission of the PCAP file
Contextconfigure mirror mirror-dest service-name pcap named-item router-instance named-item-64
Treerouter-instance
String length1 to 64
Introduced25.3.R2

Platforms

7705 SAR Gen 2

remote-source
Synopsis Enable the remote-source context
Contextconfigure mirror mirror-dest service-name remote-source
Treeremote-source
Introduced25.3.R2

Platforms

7705 SAR Gen 2

far-end [far-end-addr] ipv4-address
Synopsis Enter the far-end list instance
Contextconfigure mirror mirror-dest service-name remote-source far-end ipv4-address
Treefar-end
Introduced25.3.R2

Platforms

7705 SAR Gen 2

[far-end-addr] ipv4-address
Synopsis Far end IP address
Context configure mirror mirror-dest service-name remote-source far-end ipv4-address
Treefar-end

Notes

This element is part of a list key.

Introduced25.3.R2

Platforms

7705 SAR Gen 2

icb boolean
Synopsis Remote source as an inter-chassis backup
Contextconfigure mirror mirror-dest service-name remote-source far-end ipv4-address icb boolean
Treeicb
Defaultfalse
Introduced25.3.R2

Platforms

7705 SAR Gen 2

ing-vc-label number
Synopsis Ingress virtual circuit label
Context configure mirror mirror-dest service-name remote-source far-end ipv4-address ing-vc-label number
Treeing-vc-label
Range32 to 18431

Notes

The following elements are part of a choice: ing-vc-label or label-signaling.

Introduced25.3.R2

Platforms

7705 SAR Gen 2

label-signaling keyword
Synopsis Protocol to obtain the ingress labels
Contextconfigure mirror mirror-dest service-name remote-source far-end ipv4-address label-signaling keyword
Treelabel-signaling
Optionstldp
Defaulttldp

Notes

The following elements are part of a choice: ing-vc-label or label-signaling.

Introduced25.3.R2

Platforms

7705 SAR Gen 2

vc-id number
Synopsis Virtual circuit ID associated with the remote source
Contextconfigure mirror mirror-dest service-name remote-source far-end ipv4-address vc-id number
Treevc-id
Range1 to 4294967295

Notes

This element is mandatory.

Introduced25.3.R2

Platforms

7705 SAR Gen 2

spoke-sdp [sdp-bind-id] sdp-bind-id
Synopsis Enter the spoke-sdp list instance
Contextconfigure mirror mirror-dest service-name remote-source spoke-sdp sdp-bind-id
Treespoke-sdp
Introduced25.3.R2

Platforms

7705 SAR Gen 2

[sdp-bind-id] sdp-bind-id
Synopsis SDP ID number
Contextconfigure mirror mirror-dest service-name remote-source spoke-sdp sdp-bind-id
Treespoke-sdp
String length3 to 16

Notes

This element is part of a list key.

Introduced25.3.R2

Platforms

7705 SAR Gen 2

control-word boolean
Synopsis Enable the PW control word on spoke SDPs
Contextconfigure mirror mirror-dest service-name remote-source spoke-sdp sdp-bind-id control-word boolean
Treecontrol-word

Description

When configured to true, this command enables the PW control word on spoke SDPs that are part of a mirror destination. The control word must be enabled to allow MPLS-TP OAM on spoke SDP and is only valid for spoke SDPs that are part of a mirror service of type ether.

When configured to false, this command disables the PW control word.

Defaultfalse
Introduced25.3.R2

Platforms

7705 SAR Gen 2

egress
Synopsis Enter the egress context
Context configure mirror mirror-dest service-name remote-source spoke-sdp sdp-bind-id egress
Treeegress
Introduced25.3.R2

Platforms

7705 SAR Gen 2

vc-label number
WARNING:

Modifying this element toggles the admin-state of the parent element automatically for the new value to take effect.

SynopsisMPLS VC label that sends packets to the far end device
Contextconfigure mirror mirror-dest service-name remote-source spoke-sdp sdp-bind-id egress vc-label number
Treevc-label
Range16 to 1048575
Introduced25.3.R2

Platforms

7705 SAR Gen 2

endpoint
Synopsis Enter the endpoint context
Context configure mirror mirror-dest service-name remote-source spoke-sdp sdp-bind-id endpoint
Treeendpoint
Introduced25.3.R2

Platforms

7705 SAR Gen 2

icb boolean
WARNING:

Modifying this element toggles the admin-state of the parent element automatically for the new value to take effect.

SynopsisBind the SDP as the Inter-Chassis Backup (ICB) type
Contextconfigure mirror mirror-dest service-name remote-source spoke-sdp sdp-bind-id endpoint icb boolean
Treeicb
Defaultfalse
Introduced25.3.R2

Platforms

7705 SAR Gen 2

ingress
Synopsis Enter the ingress context
Context configure mirror mirror-dest service-name remote-source spoke-sdp sdp-bind-id ingress
Treeingress
Introduced25.3.R2

Platforms

7705 SAR Gen 2

vc-label number
WARNING:

Modifying this element toggles the admin-state of the parent element automatically for the new value to take effect.

SynopsisMPLS VC label that sends packets to the far end device
Contextconfigure mirror mirror-dest service-name remote-source spoke-sdp sdp-bind-id ingress vc-label number
Treevc-label
Range32 to 18431
Introduced25.3.R2

Platforms

7705 SAR Gen 2

sap [sap-id] sap
Synopsis Enter the sap list instance
Context configure mirror mirror-dest service-name sap sap
Treesap
Max. instances1
Introduced25.3.R2

Platforms

7705 SAR Gen 2

[sap-id] sap
Synopsis SAP ID
Contextconfigure mirror mirror-dest service-name sap sap
Treesap
String length1 to 45

Notes

This element is part of a list key.

Introduced25.3.R2

Platforms

7705 SAR Gen 2

egress
Synopsis Enter the egress context
Context configure mirror mirror-dest service-name sap sap egress
Treeegress
Introduced25.3.R2

Platforms

7705 SAR Gen 2

ip-mirror
Synopsis Enter the ip-mirror context
Context configure mirror mirror-dest service-name sap sap egress ip-mirror
Treeip-mirror
Introduced25.3.R2

Platforms

7705 SAR Gen 2

mac
Synopsis Enter the mac context
Context configure mirror mirror-dest service-name sap sap egress ip-mirror mac
Treemac
Introduced25.3.R2

Platforms

7705 SAR Gen 2

qos
Synopsis Enter the qos context
Context configure mirror mirror-dest service-name sap sap egress qos
Treeqos
Introduced25.3.R2

Platforms

7705 SAR Gen 2

sap-egress
Synopsis Enter the sap-egress context
Context configure mirror mirror-dest service-name sap sap egress qos sap-egress
Treesap-egress
Introduced25.3.R2

Platforms

7705 SAR Gen 2

port-redirect-group
Synopsis Enter the port-redirect-group context
Contextconfigure mirror mirror-dest service-name sap sap egress qos sap-egress port-redirect-group
Treeport-redirect-group
Introduced25.3.R2

Platforms

7705 SAR Gen 2

service-id number
WARNING:

Modifying this element recreates the parent element automatically for the new value to take effect.

SynopsisService ID
Contextconfigure mirror mirror-dest service-name service-id number
Treeservice-id
Range1 to 2147483647
Introduced25.3.R2

Platforms

7705 SAR Gen 2

slice-size number
Synopsis Maximum size of the transmitted mirrored frame
Contextconfigure mirror mirror-dest service-name slice-size number
Treeslice-size
Range0 | 128 to 9216
Default0
Introduced 25.3.R2

Platforms

7705 SAR Gen 2

spoke-sdp [sdp-bind-id] sdp-bind-id
Synopsis Enter the spoke-sdp list instance
Contextconfigure mirror mirror-dest service-name spoke-sdp sdp-bind-id
Treespoke-sdp
Introduced25.3.R2

Platforms

7705 SAR Gen 2

[sdp-bind-id] sdp-bind-id
Synopsis SDP ID number
Contextconfigure mirror mirror-dest service-name spoke-sdp sdp-bind-id
Treespoke-sdp
String length3 to 16

Notes

This element is part of a list key.

Introduced25.3.R2

Platforms

7705 SAR Gen 2

admin-state keyword
Synopsis Administrative state of the service SDP binding
Contextconfigure mirror mirror-dest service-name spoke-sdp sdp-bind-id admin-state keyword
Treeadmin-state
Optionsenable, disable
Default enable
Introduced25.3.R2

Platforms

7705 SAR Gen 2

egress
Synopsis Enter the egress context
Context configure mirror mirror-dest service-name spoke-sdp sdp-bind-id egress
Treeegress
Introduced25.3.R2

Platforms

7705 SAR Gen 2

vc-label number
WARNING:

Modifying this element toggles the admin-state of the parent element automatically for the new value to take effect.

SynopsisMPLS VC label that sends packets to the far end device
Contextconfigure mirror mirror-dest service-name spoke-sdp sdp-bind-id egress vc-label number
Treevc-label
Range16 to 1048575
Introduced25.3.R2

Platforms

7705 SAR Gen 2

endpoint
Synopsis Enter the endpoint context
Context configure mirror mirror-dest service-name spoke-sdp sdp-bind-id endpoint
Treeendpoint
Introduced25.3.R2

Platforms

7705 SAR Gen 2

icb boolean
WARNING:

Modifying this element toggles the admin-state of the parent element automatically for the new value to take effect.

SynopsisBind the SDP as the Inter-Chassis Backup (ICB) type
Contextconfigure mirror mirror-dest service-name spoke-sdp sdp-bind-id endpoint icb boolean
Treeicb
Defaultfalse
Introduced25.3.R2

Platforms

7705 SAR Gen 2

precedence (number | keyword)
Synopsis Precedence when multiple SDP binds are on one endpoint
Contextconfigure mirror mirror-dest service-name spoke-sdp sdp-bind-id endpoint precedence (number | keyword)
Treeprecedence
Range1 to 4
Optionsprimary
Default4
Introduced 25.3.R2

Platforms

7705 SAR Gen 2

type keyword
WARNING:

Modifying this element recreates the parent element automatically for the new value to take effect.

SynopsisMirror type information
Contextconfigure mirror mirror-dest service-name type keyword
Treetype
Optionsether, ip-only
Default ether
Introduced25.3.R2

Platforms

7705 SAR Gen 2

mirror-source [service-name] service-name

Synopsis Enter the mirror-source list instance
Contextconfigure mirror mirror-source service-name
Treemirror-source
Introduced25.3.R2

Platforms

7705 SAR Gen 2

[service-name] service-name
Synopsis Administrative service name
Context configure mirror mirror-source service-name
Treemirror-source
String length1 to 64

Notes

This element is part of a list key.

Introduced25.3.R2

Platforms

7705 SAR Gen 2

admin-state keyword
Synopsis Administrative state of the mirror service
Contextconfigure mirror mirror-source service-name admin-state keyword
Treeadmin-state
Optionsenable, disable
Default enable
Introduced25.3.R2

Platforms

7705 SAR Gen 2

ip-filter [filter-name] reference
Synopsis Enter the ip-filter list instance
Contextconfigure mirror mirror-source service-name ip-filter reference
Treeip-filter
Introduced25.3.R2

Platforms

7705 SAR Gen 2

[filter-name] reference
Synopsis IP filter name
Contextconfigure mirror mirror-source service-name ip-filter reference
Treeip-filter

Reference

configure filter ip-filter filter-name

Notes

This element is part of a list key.

Introduced25.3.R2

Platforms

7705 SAR Gen 2

entry [entry-id] number
Synopsis Add a list entry for entry
Context configure mirror mirror-source service-name ip-filter reference entry number
Treeentry
Min. instances1
Introduced25.3.R2

Platforms

7705 SAR Gen 2

[entry-id] number
Synopsis IP filter entry ID
Context configure mirror mirror-source service-name ip-filter reference entry number
Treeentry
Range1 to 2097151

Notes

This element is part of a list key.

Introduced25.3.R2

Platforms

7705 SAR Gen 2

ipv6-filter [filter-name] reference
Synopsis Enter the ipv6-filter list instance
Contextconfigure mirror mirror-source service-name ipv6-filter reference
Treeipv6-filter
Introduced25.3.R2

Platforms

7705 SAR Gen 2

entry [entry-id] number
Synopsis Add a list entry for entry
Context configure mirror mirror-source service-name ipv6-filter reference entry number
Treeentry
Min. instances1
Introduced25.3.R2

Platforms

7705 SAR Gen 2

[entry-id] number
Synopsis IPv6 filter entry ID
Context configure mirror mirror-source service-name ipv6-filter reference entry number
Treeentry
Range1 to 2097151

Notes

This element is part of a list key.

Introduced25.3.R2

Platforms

7705 SAR Gen 2

port [port-id] mirror-source-port-lag-key
Synopsis Enter the port list instance
Context configure mirror mirror-source service-name port mirror-source-port-lag-key
Treeport
Introduced25.3.R2

Platforms

7705 SAR Gen 2

[port-id] mirror-source-port-lag-key
Synopsis Port ID
Contextconfigure mirror mirror-source service-name port mirror-source-port-lag-key
Treeport

Notes

This element is part of a list key.

Introduced25.3.R2

Platforms

7705 SAR Gen 2

egress boolean
Synopsis Mirror egress packets
Context configure mirror mirror-source service-name port mirror-source-port-lag-key egress boolean
Treeegress

Description

When configured to true, egressing packets are mirrored. Egress packets are mirrored to the mirror destination after egress packet modification.

Defaultfalse
Introduced25.3.R2

Platforms

7705 SAR Gen 2

ingress boolean
Synopsis Mirror ingress packets
Context configure mirror mirror-source service-name port mirror-source-port-lag-key ingress boolean
Treeingress

Description

When configured to true, ingressing packets are mirrored. Ingress packets are mirrored to the mirror destination before ingress packet modification.

Defaultfalse
Introduced25.3.R2

Platforms

7705 SAR Gen 2

sap [sap-id] sap
Synopsis Enter the sap list instance
Context configure mirror mirror-source service-name sap sap
Treesap
Introduced25.3.R2

Platforms

7705 SAR Gen 2

[sap-id] sap
Synopsis SAP ID
Contextconfigure mirror mirror-source service-name sap sap
Treesap
String length1 to 45

Notes

This element is part of a list key.

Introduced25.3.R2

Platforms

7705 SAR Gen 2

egress boolean
Synopsis Mirror egress packets
Context configure mirror mirror-source service-name sap sap egress boolean
Treeegress

Description

When configured to true, egressing packets are mirrored. Egress packets are mirrored to the mirror destination after egress packet modification.

Defaultfalse
Introduced25.3.R2

Platforms

7705 SAR Gen 2

ingress boolean
Synopsis Mirror ingress packets
Context configure mirror mirror-source service-name sap sap ingress boolean
Treeingress

Description

When configured to true, ingressing packets are mirrored. Ingress packets are mirrored to the mirror destination before ingress packet modification.

Defaultfalse
Introduced25.3.R2

Platforms

7705 SAR Gen 2