set ip mirror

Configures an IPv4 mirroring destination for a Border Gateway Protocol flow specification (BGP flowspec) route-map rule.

Syntax

set ip mirror ip-address
no set ip mirror ip-address

Command Default

A mirroring destination is not configured.

Parameters

ip-address
Specifies the mirroring destination in IPv4 address format.

Modes

Route-map configuration mode

Usage Guidelines

To mirror to multiple destinations, you can configure multiple mirror destination addresses.

When mirroring is configured under a BGP flowspec rule, mirror destinations are advertised to BGP neighbors but are not installed in the hardware.

The no form of the command removes the configuration.

Examples

The following example shows how to configure two mirroring destination addresses for IPv4 packets for a BGP flowspec sequence number 4 under a route map named rm.

device# configure terminal
device(config)# route-map rm permit 4 
device(config-route-map-rm/permit/4)# set ip mirror 10.2.3.4 
device(config-route-map-rm/permit/4)# set ip mirror 10.6.7.8