The Layer 2 Tunneling Protocol (L2TP) enables you to set up client services for establishing Point-to-Point Protocol (PPP) tunnels across a network and negotiating Multilink PPP if it is implemented. Multiple L2TP PPP sessions can share the same remote peer IP address, which enables you to set up redundant sessions between the same links.
The last session or bundle to come up accomplishes the traffic transfer. When this session or bundle goes down, the traffic switches to the next-to-last session or bundle to come up. For example, if four sessions or bundles labeled A, B, C, and D share the same remote IP address and come up in alphabetical order, D initially handles the data transfer. If D goes down, traffic switches over to C, and so forth. If another session or bundle E subsequently comes up and has the same address, the traffic switches over to it.
To configure L2TP services, include the l2tp statement at the [edit services] hierarchy level:
- l2tp {
-
-
tunnel-group group-name {
-
hello-interval seconds;
-
hide-avps;
-
l2tp-access-profile profile-name;
-
local-gateway address address;
-
maximum-send-window packets;
-
ppp-access-profile profile-name;
-
receive-window packets;
-
retransmit-interval seconds;
-
service-interface interface-name;
-
-
syslog {
-
-
host hostname {
-
services severity-level;
-
facility-override facility-name;
-
log-prefix prefix-value;
- }
- }
-
tunnel-timeout seconds;
- }
-
-
traceoptions {
- debug-level level;
-
- filter {
- protocol name;
- }
- flag flag;
-
- interfaces interface-name {
- debug-level level;
- flag flag;
- }
- }
- }
![]() |
Note: L2TP configurations are supported only on M7i, M10i, and M120 routing platforms. |
You configure other components of this feature at the [edit access] and [edit interfaces] hierarchy levels. Those configurations are summarized in this chapter; for more information, see the JUNOS System Basics Configuration Guide or the JUNOS Network Interfaces Configuration Guide.
This chapter contains the following sections: