[Contents] [Prev] [Next] [Index] [Report an Error]


CLI-Based IP Interface Mirroring

When you mirror a specific IP interface, all ingress and egress traffic on the interface (traffic entering or exiting the E-series router through that interface) is replicated. The original traffic is forwarded to its intended destination as usual, while the mirrored copy of the traffic is forwarded to an analyzer port on the E-series router. The analyzer port then directs the mirrored traffic to the specified mediation device (the analyzer) for analysis.

The interface mirroring operation is transparent to the user whose traffic is being mirrored. Configuration information and statistics can be viewed by any user on the E-series router by default; however, an administrator can move this monitoring capability to a higher privilege level.

Figure 31 shows the traffic flow for ingress and egress IP interface mirroring.


Figure 31: CLI-Based IP Interface Mirroring

Configuring CLI-Based IP Interface Mirroring

This example configures an IP interface-mirroring environment that replicates all traffic on interface ATM 3/0.1 and forwards the replicated traffic to the analyzer port at interface FastEthernet 4/0.

The analyzer port must exist when you use the ip mirror command. Otherwise, you will receive the error message "ip interface is not an analyzer port," and the command will fail.

  1. Create the analyzer port at FastEthernet interface 4/0:
  2. host1(config)#interface fastEthernet 4/0
    
    host1(config-if)#ip analyzer
    
    
    
  3. Enable mirroring on interface ATM 3/0.1:
  4. host1(config)#ip mirror atm 3/0.1 fastEthernet 4/0 next-hop 192.168.1.2
    
    Proceed with the mirroring of all ip traffic at the specified interface? [confirm] y
    
    
    
  5. Verify your interface mirroring configuration:
  6. host1#show ip mirror interface atm 3/0.1
    
    
    
            Interface               Analyzer Port        Analyzer next-hop
    
    ------------------------- ------------------------- -------------------
    
    ATM3/0.1                  FastEthernet4/0           192.168.1.2
    

Commands and Guidelines

This section lists the commands you use to configure CLI-based IP interface mirroring.

ip analyzer

ip mirror


[Contents] [Prev] [Next] [Index] [Report an Error]