tunnel mode gre l2 (mirrored tunnel)

Use this command to configure the Layer 2 GRE mirrored tunnel mode.

Syntax

tunnel mode gre l2 mirrored-port-string
no tunnel mode

Parameters

mirrored-port-string Specifies the port string of the mirrored remote destination port for this L2 mirrored tunnel.

Defaults

None.

Mode

Tunnel Interface Configuration command mode.

Usage

The tunnel mode determines the encapsulation method used by the tunnel. This command instructs the tunnel to use L2 GRE encapsulation mode for the remote mirror-destination port specified.

See the tunnel mirror enable for details on enabling the Layer 2 remote mirrored tunnel.

Note

Note

Disable the tunnel interface using the shutdown command before changing the tunnel mode using this command. After changing the tunnel mode, enable the tunnel interface using the no shutdown command. See no shutdown for details on enabling and disabling an interface.

Use the “no” option for this command to reset the tunnel mode to the default value of GRE.

Examples

This S- and K-Series example shows how to set the tunnel mode GRE Layer 2 for the mirror-destination port ge.1.8 and enable the tunnel for:

  • Tunnel interface 5
  • Tunnel destination 99.99.99.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 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 set the tunnel mode GRE Layer 2 for the mirror-destination port tbp.0.1 and enable the tunnel for:

  • Tunnel interface 5
  • Tunnel destination 99.99.99.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)->