To configure L2TP services, you must perform at least the following tasks:
Define a tunnel group at the [edit services l2tp] hierarchy level with the following attributes:
- [edit services l2tp]
- tunnel-group finance-lns-server {
- l2tp-access-profile westcoast_bldg_1_tunnel;
- ppp-access-profile westcoast_bldg_1;
-
- local-gateway {
- address 10.21.255.129;
- }
- service-interface sp-1/3/0;
- }
- traceoptions {
- flag all;
-
- filter {
- protocol udp;
- protocol l2tp;
- protocol ppp;
- protocol radius;
- }
- }
At the [edit interfaces] hierarchy level:
At the [edit access] hierarchy level:
![]() |
Note: When the L2TP Network Server (LNS) is configured with RADIUS authentication, the default behavior is to accept the preferred RADIUS-assigned IP address. Previously, the default behavior was to accept and install the nonzero peer IP address that came into the IP-Address option of the IPCP Configuration Request packet. |
- [edit access]
- group-profile westcoast_users {
-
- ppp {
- keepalive 0;
- }
- }
- profile westcoast_bldg_1_tunnel {
-
- client production {
-
- l2tp {
- interface-id test;
- shared-secret "$9$n8HX6A01RhlvL1R"; # SECRET-DATA
- }
- user-group-profile westcoast_users;
- }
- }
- profile westcoast_bldg_1 {
- authentication-order radius;
- }
- radius-server {
-
- 192.168.65.63 {
- port 1812;
- secret "$9$Vyb4ZHkPQ39mf9pORlexNdbgoZUjqP5"; # SECRET-DATA
- }
- }