L2TP Tunnel Switching Overview
L2TP tunnel switching, also known as L2TP multihop, simplifies the deployment of an L2TP network across multiple domains. A router that lies between a LAC and an LNS is configured as an L2TP tunnel switch (LTS)—sometimes referred to simply as a tunnel switch or a tunnel switching aggregator (TSA)—as shown in Figure 1. The LTS is configured as both an LNS and a LAC. When a remote LAC sends encapsulated PPP packets to the LNS configured on the LTS, the LTS can forward or redirect the packets through a different tunnel to a different LNS beyond the LTS. The logical termination point of the original L2TP session is switched to a different endpoint.
For example, in the network shown in Figure 1, packets from the subscriber provisioned by service provider A are initially targeted at the LNS configured on the LTS. The LTS might redirect those packets to LNS1.
Figure 1: L2TP Tunnel Switching Network Topology

L2TP tunnel switching simplifies network configuration when the administrative domain of a LAC is different from that of the desired LNS. For example:
- The LTS acts as the LNS for multiple LACs. The individual LACs do not have to have the administrative control or capability required to identify the most appropriate LNS on which to terminate their sessions. The LTS performs that function is centralized in the LTS.
- The LTS acts as the LAC for multiple LNSs. When a new remote LAC is added to an ISP’s network, the ISP does not have to reconfigure its LNS routers to accommodate the new LAC, because they connect to the LAC on the LTS.
In a Layer 2 wholesale network, the wholesaler can use L2TP tunnel switching to create a flatter network configuration that is easier to manage. The wholesaler bundles Layer 2 sessions from a LAC that are destined for different ISPs—and therefore different LNSs—onto a single L2TP tunnel. This configuration enables a common L2TP control connection to be used for the LAC.
Figure 2 shows an example of L2TP tunnel switching for incoming calls with the following sequence of events:
- The subscriber opens a PPP session to the LAC.
- The LAC creates the first L2TP tunnel to the LNS configured on the LTS and the first L2TP session to carry the encapsulated PPP packets.
- During authentication of this first session, the LTS determines
whether to retunnel the session to an LNS beyond the LTS, based on
the presence or absence of a tunnel switch profile configured on the
LTS.
The tunnel switch profile can be a default profile or it can be applied by the RADIUS server, a domain map configuration, or a tunnel group configuration.
- If a tunnel switch profile is configured, the LTS creates a second tunnel (if it does not already exist) to the LNS beyond the LTS as specified in the profile and creates the second session in this tunnel.
Figure 2: L2TP Tunnel Switching for Incoming Calls

Application of Tunnel Switch Profiles
You can configure a tunnel switch profile to be applied in several ways:
- As a default profile applied globally to traffic received from all LACs
- With a domain map applied to a subscriber session
- With a tunnel group applied to a subscriber session
- In your RADIUS server configuration
You can configure more than one of these methods of application. When multiple tunnel switch profiles are present, the following order of precedence establishes which profile the LTS uses; the order is from highest (RADIUS) to lowest (default profile):
- RADIUS > domain map > tunnel group > default tunnel switch profile
The tunnel switch profile must also reference a tunnel profile. This tunnel profile specifies the characteristics of the second tunnel, to which the subscriber packets are switched.
Termination of Tunnel-Switched Sessions on the LTS
Tunnel switched sessions are terminated on the LTS when any of the following happens:
- Either the LAC or LNS interface on the LTS receives a
Call-Disconnect-Notify (CDN) message (Table 1).
Table 1: Cause of CDN Message
CDN Message Is Received On
When
LAC interface
Either of the following occurs:
- The second session cannot be established.
- The remote LNS terminates the second session.
LNS interface
Either of the following occurs:
- The PPPoE client initiates a logout.
- The originating LAC initiates termination of the tunnel
Both the first and second sessions are terminated because the LTS relays the CDN to the interface that did not receive the CDN. The disconnect cause is the same for both sessions.
- Either the LAC or LNS interface on the LTS receives a
Stop-Control-Connection-Notification (StopCCN) message (Table 2).
Table 2: Cause of StopCCN Message
StopCCN Message Is Received On
When
LAC interface
Either of the following occurs:
- The second session cannot be established.
- The remote LNS terminates the second tunnel.
LNS interface
The originating LAC initiates termination of the tunnel.
The LTS does not relay the StopCCN message, because a given tunnel can contain both switched and nonswitched sessions. Another reason in a wholesale scenario is that the tunnel ending on the LNS on the LTS can contain sessions from LACs from different providers. Instead, the LTS sends a CDN message to the interface that did not receive the StopCCN to terminate the tunnel-switched session. This CDN relays the error code carried in the StopCCN.
- An administrative clear command is issued on the LTS.
Table 3 lists the actions taken when an administrative clear command is issued on the LTS.
Table 3: LAC, LNS, and LTS Actions Taken for Switched Tunnels in Response to Administrative clear Commands
Command | LAC or LNS Action | LTS Action |
|---|---|---|
clear services l2tp destination | Clear the destination and all associated tunnels and sessions. | For each switched session in a tunnel to the destination, clear the corresponding mapped switched session by sending it a CDN message with the cause set to Administrative. |
clear services l2tp destination all | Clear all destinations and all associated tunnels and sessions. | None. |
clear services l2tp session | Clear the session. | Clear the corresponding mapped switched session for this session by sending it a CDN message with the cause set to Administrative. |
clear services l2tp session all | Clear all sessions. | None. |
clear services l2tp tunnel | Clear the tunnel and all its sessions. | For each switched session in the tunnel, clear the corresponding mapped switched session by sending it a CDN message with the cause set to Administrative. |
clear services l2tp tunnel all | Clear all tunnels. | None. |