tunnel mirror enable

Use this command to enable a remote mirror using Layer 2 tunneling.

Syntax

tunnel mirror enable
no tunnel mirror enable

Parameters

None.

Defaults

Remote mirroring using Layer 2 tunnels is disabled by default.

Mode

Tunnel Interface Configuration command mode.

Usage

This command allocates the necessary resources to support mirrored packets. It searches for SMON or policy port mirrors that use the mirror destination port specified in tunnel mode gre l2 (mirrored tunnel). Policy port mirrors are supported on the S- and K-Series. On the S- and K-Series, once the mirrored tunnel is enabled, the specified port is set to loopback mode and Layer 2 traffic will no longer ingress or egress the port, only mirrored traffic from the destination port.

When configuring the L2 tunnel on the remote side, where the remote mirrored port destination resides, do not enable the L2 tunnel using this command.

Use the “no” option for this command to disable the Layer 2 mirrored tunnel.

Examples

This S- and K-Series example shows how to enable the L2 mirrored tunnel for the mirror-destination port ge.1.8:

  • Tunnel interface 5
  • Tunnel destination 99.99.99.1
  • Tunnel mode GRE L2 for destination mirrored port ge.1.8
  • Tunnel source 88.88.88.1
    System(rw)->configure
    System(rw-config)->interface tunnel 5
    System(rw-config-intf-tun.0.5)->tunnel destination 99.99.99.1
    System(rw-config-intf-tun.0.5)->tunnel mode gre l2 ge.1.8
    System(rw-config-intf-tun.0.5)->tunnel source 88.88.88.1
    System(rw-config-intf-tun.0.5)->tunnel mirror enable
    System(rw-config-intf-tun.0.5)->no shutdown
    System(rw-config-intf-tun.0.5)->exit
    System(rw-config)->

This 7100-Series example shows how to enable the L2 mirrored tunnel for the mirror-destination port ge.1.8:

  • Tunnel interface 5
  • Tunnel destination 99.99.99.1
  • Tunnel mode GRE L2 for destination mirrored port tbp.0.1
  • Tunnel source 88.88.88.1
    System(rw)->configure
    System(rw-config)->interface tunnel 5
    System(rw-config-intf-tun.0.5)->tunnel destination 99.99.99.1
    System(rw-config-intf-tun.0.5)->tunnel mode gre l2 tbp.0.1
    System(rw-config-intf-tun.0.5)->tunnel source 88.88.88.1
    System(rw-config-intf-tun.0.5)->tunnel mirror enable
    System(rw-config-intf-tun.0.5)->no shutdown
    System(rw-config-intf-tun.0.5)->exit
    System(rw-config)->