3.2.50. mirror-traffic

Note

requires a specific license: Mirror Traffic.

Mirror traffic filtered on source, destination and/or protocol.

vsr running config# vrf <vrf> mirror-traffic

filter

List of filters to be applied for the mirroring. Each interface/direction pair can be associated with one filter.

vsr running config# vrf <vrf> mirror-traffic filter <string>{1,255}

<string>{1,255}

Name of the filter.

rule

List of filtering rules. All the rules will be applied to the same interface/direction pair.

vsr running config# vrf <vrf> mirror-traffic filter <string>{1,255} rule <uint32>

<uint32>

Id of the rule.

ipv4

Configure an IPv4 rule.

vsr running config# vrf <vrf> mirror-traffic filter <string>{1,255} rule <uint32> ipv4
source-address

Source IPv4 address.

vsr running config# vrf <vrf> mirror-traffic filter <string>{1,255} rule <uint32> ipv4
vsr running ipv4# source-address SOURCE-ADDRESS

SOURCE-ADDRESS

An IPv4 address.

source-prefix

Source IPv4 prefix.

vsr running config# vrf <vrf> mirror-traffic filter <string>{1,255} rule <uint32> ipv4
vsr running ipv4# source-prefix SOURCE-PREFIX

SOURCE-PREFIX

An IPv4 prefix: address and CIDR mask.

destination-address

Destination IPv4 address.

vsr running config# vrf <vrf> mirror-traffic filter <string>{1,255} rule <uint32> ipv4
vsr running ipv4# destination-address DESTINATION-ADDRESS

DESTINATION-ADDRESS

An IPv4 address.

destination-prefix

Destination IPv4 prefix.

vsr running config# vrf <vrf> mirror-traffic filter <string>{1,255} rule <uint32> ipv4
vsr running ipv4# destination-prefix DESTINATION-PREFIX

DESTINATION-PREFIX

An IPv4 prefix: address and CIDR mask.

source-port

Source port.

vsr running config# vrf <vrf> mirror-traffic filter <string>{1,255} rule <uint32> ipv4
vsr running ipv4# source-port SOURCE-PORT

SOURCE-PORT

A 16-bit port number used by a transport protocol such as TCP or UDP.

destination-port

Destination port.

vsr running config# vrf <vrf> mirror-traffic filter <string>{1,255} rule <uint32> ipv4
vsr running ipv4# destination-port DESTINATION-PORT

DESTINATION-PORT

A 16-bit port number used by a transport protocol such as TCP or UDP.

protocol

The protocol to filter, allows protocol number or name.

vsr running config# vrf <vrf> mirror-traffic filter <string>{1,255} rule <uint32> ipv4
vsr running ipv4# protocol PROTOCOL

PROTOCOL values

Description

<uint8>

No description.

icmp

ICMP protocol.

tcp

TCP protocol.

udp

UDP protocol.

ipv6

Configure an IPv6 rule.

vsr running config# vrf <vrf> mirror-traffic filter <string>{1,255} rule <uint32> ipv6
source-address

Source IPv6 address.

vsr running config# vrf <vrf> mirror-traffic filter <string>{1,255} rule <uint32> ipv6
vsr running ipv6# source-address SOURCE-ADDRESS

SOURCE-ADDRESS

An IPv6 address.

source-prefix

Source IPv6 prefix.

vsr running config# vrf <vrf> mirror-traffic filter <string>{1,255} rule <uint32> ipv6
vsr running ipv6# source-prefix SOURCE-PREFIX

SOURCE-PREFIX

An IPv6 prefix: address and CIDR mask.

destination-address

Destination IPv6 address.

vsr running config# vrf <vrf> mirror-traffic filter <string>{1,255} rule <uint32> ipv6
vsr running ipv6# destination-address DESTINATION-ADDRESS

DESTINATION-ADDRESS

An IPv6 address.

destination-prefix

Destination IPv6 prefix.

vsr running config# vrf <vrf> mirror-traffic filter <string>{1,255} rule <uint32> ipv6
vsr running ipv6# destination-prefix DESTINATION-PREFIX

DESTINATION-PREFIX

An IPv6 prefix: address and CIDR mask.

source-port

Source port.

vsr running config# vrf <vrf> mirror-traffic filter <string>{1,255} rule <uint32> ipv6
vsr running ipv6# source-port SOURCE-PORT

SOURCE-PORT

A 16-bit port number used by a transport protocol such as TCP or UDP.

destination-port

Destination port.

vsr running config# vrf <vrf> mirror-traffic filter <string>{1,255} rule <uint32> ipv6
vsr running ipv6# destination-port DESTINATION-PORT

DESTINATION-PORT

A 16-bit port number used by a transport protocol such as TCP or UDP.

protocol

The protocol to filter, allows protocol number or name.

vsr running config# vrf <vrf> mirror-traffic filter <string>{1,255} rule <uint32> ipv6
vsr running ipv6# protocol PROTOCOL

PROTOCOL values

Description

<uint8>

No description.

icmpv6

ICMPv6 protocol.

tcp

TCP protocol.

udp

UDP protocol.

rule

The source of mirroring.

vsr running config# vrf <vrf> mirror-traffic
vsr running mirror-traffic# rule from <from> direction <direction> to <to> \
... filter <leafref>

<from>

An interface name.

<direction> values

Description

ingress

Mirror only incoming traffic.

egress

Mirror only outgoing traffic.

<to>

An interface name.

filter

Name of the filter list to apply to this mirroring rule.

filter <leafref>