# ip mirror

#### Syntax

ip mirror mirrorInterfaceType mirrorInterfaceSpecifier
[ analyzerInterfaceType analyzerInterfaceSpecifier [ next-hop nextHop ] ]

no ip mirror mirrorInterfaceType mirrorInterfaceSpecifier

#### Release Information

Command introduced before JunosE Release 7.1.0.

#### Description

Configures the specified interface to mirror all IP ingress and egress traffic, and directs the mirrored traffic to an analyzer interface. The no version disables mirroring on the interface.

| Note: This command is deprecated and might be removed completely in a future release. The function provided by this command has been replaced by the updated packet mirroring feature and the ip policy command used with the secure-input and secure-output keywords.

#### Options

- mirrorInterfaceType—Interface type; see Interface Types and Specifiers
- mirrorInterfaceSpecifier—Particular interface that performs the interface mirroring function; see Interface Types and Specifiers
- analyzerInterfaceType—Interface type
- analyzerInterfaceSpecifier—Particular interface used as the analyzer interface; if omitted, the virtual router's default analyzer interface is used
- nextHop—Next-hop IP address to the remote analyzer host; required if the analyzer interface is a shared medium, such as Ethernet

#### Mode

Global Configuration

#### Related Topics

- Configuring CLI-Based Mirroring