L2TP

This help contains the following topics:

Introduction

The Layer 2 Tunneling Protocol (L2TP) is a Virtual Private Dialup Network (VPDN) tunneling protocol. L2TP sets up point-to-point tunnels across a public network (for example, the Internet) and transmits encapsulated PPP frames (L2TP packets) over the tunnels. With L2TP, remote users can access the private networks through L2TP tunnels after connecting to a public network by using PPP.

Typical L2TP network components

A typical L2TP network has the following components:

L2TP tunneling modes

L2TP tunneling modes include NAS-initiated, client-initiated, and LAC-auto-initiated.

NAS-initiated tunneling mode

As shown in Figure 1, a remote system dials in to the LAC through a PPPoE/ISDN network. The LAC initiates a tunneling request to the LNS over the Internet.

Figure-1 NAS-initiated tunneling mode

A NAS-initiated tunnel has the following characteristics:

Client-initiated tunneling mode

As shown in Figure-2, a remote system running L2TP (LAC client) has a public IP address to communicate with the LNS through the Internet. The LAC client can directly initiate a tunneling request to the LNS without any dedicated LAC devices.

Figure-2 Client-initiated tunneling mode

A client-initiated tunnel has the following characteristics:

LAC-auto-initiated tunneling mode

In NAS-initiated mode, a remote system must successfully dial in to the LAC through PPPoE or ISDN.

In LAC-auto-initiated mode, you can configure tunnel settings on the LAC to trigger the LAC to initiate a tunneling request to the LNS. When a remote system accesses the private network, the LAC forwards data through the L2TP tunnel.

Figure-3 LAC-auto-initiated tunneling mode

An LAC-auto-initiated tunnel has the following characteristics:

vSystem support information

Support of non-default vSystems for this feature depends on the device model. This feature is available on the Web interface only if it is supported.

Troubleshooting L2TP

Tunnel setup failure

Symptom

After you select VPN > L2TP > TunnelInfo, no tunnel information is displayed. Tunnel establishment fails.

Solution

To resolve the problem, verify the following items to avoid tunnel setup failures:

Data transmission failure

Symptom

After you select VPN > L2TP > TunnelInfo, the page shows that tunnels are successfully established. However, data transmission fails. For example, the LAC and LNS cannot ping each other.

Solution

To resolve the problem:

  1. Verify that the LAC has a route to the private network behind the LNS, and vice versa. If no route is available, configure a static route or a dynamic routing protocol.

  2. Add the Virtual-Template interface on the LNS to a security zone, and permit the traffic from the security zone to security zone Local.

  3. Increase the link bandwidth to enhance the link availability.

    Internet backbone congestion and high packet loss ratio might cause data transmission failures. L2TP data transmission is based on UDP, which does not provide the packet error control feature. If the line is unstable, the LAC and LNS might be unable to ping each other.

Configuration guidelines

Configure L2TP

Procedure

  1. Click the Network tab.

  2. In the navigation pane, select VPN > L2TP > L2TP.

  3. On the L2TP page, click Create.

    The Create L2TP Tunnel page opens.

    Table-1 L2TP tunnel configuration items

    Item

    Description

    Group type

    L2TP group types include LAC and LNS. A LAC is an endpoint of an L2TP tunnel, and is located between the LNS and remote system. A LAC is used to transmit packets between the LNS and remote system.

    Group number

    Number of an L2TP group.

    Local tunnel name

    If you do not configure a local tunnel name, the device name is used as the local tunnel name by default.

    Peer tunnel name

    When the L2TP group number is not 1, you must configure a peer tunnel name.

    Tunnel password auth

    L2TP tunnel authentication is used to prevent the local device from setting up an L2TP tunnel to an invalid device and improves the network security.

    Tunnel password

    If you need to modify the tunnel authentication password, do that before the tunnel starts negotiation. If you do that after the tunnel starts negotiation, the password modification does not take effect.

    Confirm tunnel password

    Enter the tunnel password again to confirm the password.

    L2TP server addresses

    Specify the LNS IP addresses. You can specify up to five addresses.

    PPP authentication mode

    When you select PAP or CHAP authentication, make sure the user information is consistent with that on the LNS side.

    PPP server address

    IP address of the virtual PPP interface used for negotiating PPP connections.

    Subnet mask

    Mask for the IP address of the virtual PPP interface.

    User address pool

    Address pool range that can be used by the users. You can specify a single address or an address range.

    Hello interval

    The device periodically sends Hello packets at the configured interval to prevent the L2TP tunnel and session between the LAC and LNS from being deleted after they time out.

    AVP hiding

    To prevent information such as user password from being intercepted, you can use this feature to transmit the AVP data in hidden mode. This feature takes effect only after the tunnel password authentication feature is enabled.

    Flow control

    L2TP session flow control adds sequence numbers to transmitted packets and uses them to reorder packets arriving out of order and to detect lost packets.

  4. Click OK.

View tunnel info

On the Tunnel Info page, you can view the tunnel IDs, peer address, peer port, group type, and tunnel status of an L2TP tunnel.