This section describes the mechanism of L2TP VPN in the Call-LNS scenario in terms of tunnel negotiations, packet encapsulation, security policies, and source NAT on the LAC.
| Packet Exchange Procedure | Packet Content |
|---|---|
LAC: sends an SCCRQ packet to notify the LNS of the tunnel ID (1). An LAC or LNS can establish multiple tunnels simultaneously to transmit different user services. The LAC or LNS negotiates the tunnel IDs for tunnels to be established to distinguish between the tunnels. L2TP packets are transmitted using UDP. When sending an SCCRQ packet, the LAC selects an idle interface as the source interface to send the packet to interface 1701 of the LNS. After receiving the packet, the LNS uses interface 1701 to send a response packet to the specified interface of the LAC. The interfaces at both sides are fixed until the tunnel is disconnected. |
![]() |
LNS: sends an SCCRP packet to notify the LAC of the tunnel ID (1). |
![]() |
LAC: sends an SCCCN packet. So far, the two devices have negotiated the tunnel ID to establish an L2TP VPN tunnel. |
![]() |
In Step 3, the LAC establishes a PPP connection with the LNS. The L2TP session is used to record and manage the status of the PPP connection. Therefore, before establishing a PPP connection, the LAC and LNS need to negotiate an L2TP session.
| Packet Exchange Procedure | Packet Content |
|---|---|
LAC: sends an ICRQ packet to notify the LNS of the session ID (81). |
![]() |
LNS: sends an ICRP packet to notify the NAS of the session ID (77). |
![]() |
LAC: sends an ICCN packet. So far, the two devices have negotiated the session ID to establish an L2TP session. |
![]() |
The LAC establishes a PPP connection with the LNS to obtain an intranet IP address from the LNS.
| Packet Exchange Procedure | Packet Content |
|---|---|
LAC: sends an LCP Request packet to negotiate link-layer parameters. For example, as shown in the figure at the right side, the negotiated MRU is 1500. The LNS returns an LCP ACK packet to the LAC. |
![]() |
LAC: sends a PAP Request packet to request the PPPoE server to perform identity authentication. As shown in the figure at the right side, the PAP packet carries user name hb@hb and password admin@123. The LNS returns a PAP ACK packet carrying the authentication result. If the LAC uses CHAP authentication, the authentication process is little different. For details, see section PPP CHAP. NOTE:
An L2TP VPN tunnel does not have the data encapsulation function. To prevent user data theft, you are advised to use the IPSec technology to provide the data encryption function for L2TP VPN. |
![]() |
LAC: After identity authentication succeeds, the LAC sends an IPCP Request packet to request the LNS to assign an intranet IP address. The LNS sends an IPCP ACK packet to the LAC. The packet carries the intranet IP address allocated to the LAC. So far, the PPP connection has been established. As shown in the following figure, the intranet address assigned by the LNS to the LAC is 172.16.1.51. |
![]() |
The PC of the employee on the branch sends the packet to the LAC based on a local route.
The LAC sends the encapsulated packet based on the public route to the Internet.
The service packets access the LAC from the Trust zone and are encapsulated by the VT interface in the DMZ. The services pass through the Trust zone and DMZ in sequence. The Trust zone and DMZ are used as an example. The interface that connecting the LAC to the branch network resides in the Trust zone, and the VT interface on the LAC resides in the DMZ.
The L2TP packets include the negotiation packets used for establishing an L2TP VPN tunnel and L2TP-encapsulated service packets. The L2TP packets pass through the Local and Untrust zones in sequence.
The L2TP packets include the L2TP negotiation packets exchanged by the LAC and LNS to establish a tunnel and the pre-decapsulated L2TP packets sent by the employee to access the server of the enterprise headquarters. The L2TP packets are transmitted from the Untrust zone to the Local zone.
The VT interface of the LNS decapsulates the L2TP packets and sends them to the Trust zone where the desired server on the headquarters resides. The packets are transmitted from the DMZ to the Trust zone.
| Traffic Direction | Device | Source Zone | Destination Zone | Source Address | Destination Address | Application |
|---|---|---|---|---|---|---|
| Traffic sent by an employee in the enterprise branch to access a server on the enterprise headquarters | LAC | Trust | DMZ | 10.1.1.0/24 | 192.168.1.0/24 | * |
| Local | Untrust | 1.1.1.1/32 | 1.1.1.2/32 | L2TP | ||
| LNS | Untrust | Local | 1.1.1.1/32 | 2.2.2.2/32 | L2TP | |
| DMZ | Trust | 172.16.1.51/24 | 192.168.1.0/24 | * | ||
| Traffic sent by the server on the enterprise headquarters to access the employee in the branch | LAC | DMZ | Trust | 192.168.1.0/24 | 10.1.1.0/24 | * |
| LNS | Trust | DMZ | 192.168.1.0/24 | 172.16.1.51/24 | * |
The LAC finds that the outbound interface of the packet is VT1 and performs L2TP encapsulation for the packet. The source and destination addresses of the encapsulated packet are 1.1.1.1 and 2.2.2.1 respectively.
The LNS does not have any route destined for network segment 10.1.1.0/24. Therefore, the response packet cannot be transmitter over the L2TP tunnel to the employee. Finally, the packet is forwarded to the Internet based on the default route and is discarded on the Internet.
[LAC] nat-policy [LAC-policy-nat] rule name policy1 [LAC-policy-nat-rule-policy1] egress-interface Virtual-Template vt1 [LAC-policy-nat-rule-policy1] source-address 10.1.1.0 24 [LAC-policy-nat-rule-policy1] action nat easy-ip [LAC-policy-nat-rule-policy1] quit [LAC-policy-nat] quit