tunnel mode gre l2 (Virtual Private Port) (S-, K-Series)

Use this command to bind a physical port to a Virtual Private Port L2 tunnel.

Syntax

tunnel mode gre l2 port-name
no tunnel mode gre l2 port-name

Parameters

port-name Specifies the name of the physical port to bind to this L2 tunnel.

Defaults

None.

Mode

Tunnel Interface Configuration command mode.

Usage

This command configures one end of a Virtual Private Port L2 tunnel. Virtual Private Port L2 tunnels permit the user to extend a virtual wire through an arbitrary routed network using GRE with transparent bridging. The configuration on each end of the tunnel specifies a physical port to be connected to the Virtual Private Port. Once configured in this manner, any packets arriving on that physical port are immediately encapsulated and routed to the other end of the tunnel. When the packet arrives at the remote end of the tunnel, it is immediately de-encapsulated and sent out the configured port on that end of the tunnel. The net effect is to create a direct connection between each end of the tunnel. No switch or router configuration affects the original packet. The packet arriving at the ingress port is tunneled without change to the tunnel‘s remote end.

Note

Note

Disable the tunnel interface using the shutdown command should you have a need to change the tunnel mode. 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. tunnel mode (S-, K-Series) for default tunnel mode information.

Examples

This example shows how to set:

  • IP address 10.10.10.1 as the GRE L2 tunnel source:
  • IP address 10.10.10.2 as the GRE L2 tunnel destination
  • Physical port ge.1.2 as the bound physical port for the GRE L2 tunnel 1
    System(rw)->configure
    System(rw-config)->interface tunnel 1
    System(rw-config-intf-tun.0.1)->tunnel source 10.10.10.1
    System(rw-config-intf-tun.0.1)->tunnel destination 10.10.10.2
    System(rw-config-intf-tun.0.1)->tunnel mode gre l2 ge.1.2
    System(rw-config-intf-tun.0.1)->no shutdown
    System(rw-config-intf-tun.0.1)->