Configuring Cli-Based Interface-Specific Mirroring - Juniper E320 Configuration Manual

Junose internet software for e-series routing platforms
Hide thumbs Also See for E320:
Table of Contents

Advertisement

Configuring CLI-Based Interface-Specific Mirroring

This example shows the configuration of a CLI-based packet mirroring session for a
particular static IP interface. The configuration results in all traffic through the
interface being replicated and the replicated traffic then sent through an IPSec
tunnel to the analyzer device.
1. Enable the visibility and use of the packet mirroring CLI commands.
2. Configure the analyzer port and a route to reach the analyzer device at
NOTE:
for the analyzer device.
3. Configure the secure IP policy that forwards the mirrored traffic to the analyzer
4. Attach the secure policy to the interfaces whose traffic you want to mirror. This
host1#mirror-enable
192.168.125.29.
If the analyzer port is Ethernet-based, you must configure a static ARP entry
host1(config)#virtual-router vr1
host1:vr1(config)#interface tunnel ipsec:Diag transport-virtual-router default
host1:vr1(config-if)#ip analyzer
host1:vr1(config-if)#exit
host1:vr1(config)#ip route 192.168.125.29 255.255.255.255 tunnel ipsec:Diag
device at 192.168.125.29.
In this example, the configured mirror rule does not include the
analyzer-udp-port keyword. Therefore, the rule sets the mirror header to
disable, which means that the mirror header is not prepended to the mirrored
packets. See
Understanding the Prepended Header
about the prepended mirror header.
host1:vr1(config)#secure ip policy-list secureIpPolicy1
host1:vr1(config-policy-list)#classifier-group *
host1:vr1(config-policy-list-classifier-group)#mirror analyzer-ip-address
192.168.125.29 analyzer-virtual-router vr1
example mirrors input traffic at interface ATM 5/0.1 and output traffic at
interface ATM 5/0.2.
host1:vr1(config)#interface atm 5/0.1
host1:vr1(config-if)#ip policy secure-input secureIpPolicy1
host1:vr1(config)#interface atm 5/0.2
host1:vr1(config-if)#ip policy secure-output secureIpPolicy1
Chapter 6: Packet Mirroring
on page 174 for information
Configuring CLI-Based Packet Mirroring
!
157

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Erx-710Erx-310Erx-1440Erx-1410Erx-705

Table of Contents