Router Installation and Configuration Manual/Configuring L2TP as LAC

From ImageStream Router Documentation

(Difference between revisions)
Jump to: navigation, search
(New page: While support for L2TP Access Concentrator (LAC) mode is incomplete, L2TP tunnels and PPP sessions can be manually established to remote L2TP Network Servers (LNS). L2TP commands must be ...)
(Client configuration)
Line 14: Line 14:
  modprobe pppol2tp
  modprobe pppol2tp
  openl2tpd -u 1701
  openl2tpd -u 1701
-
  l2tpconfig ppp profile modify profile_name=default default_route=yes max_failure_count=0
+
  l2tpconfig ppp profile modify profile_name=default default_route=yes options_file=/etc/l2tp.opts
  l2tpconfig tunnel create tunnel_name=tun1 dest_ipaddr=205.159.243.1 secret=mypass persist=yes
  l2tpconfig tunnel create tunnel_name=tun1 dest_ipaddr=205.159.243.1 secret=mypass persist=yes
  l2tpconfig session create tunnel_name=tun1 user_name=client1 user_password=clientpass
  l2tpconfig session create tunnel_name=tun1 user_name=client1 user_password=clientpass
 +
 +
Enter this command from the command line (bash shell):
 +
echo "persist" > /etc/l2tp.opts

Revision as of 17:36, 14 January 2010

While support for L2TP Access Concentrator (LAC) mode is incomplete, L2TP tunnels and PPP sessions can be manually established to remote L2TP Network Servers (LNS).

L2TP commands must be placed in the local startup script (rc.local) which can be edited from the main menu option 1 (Configuration Menu) => option 1 (Global configuration) => option 4 (Configure rc.local).

Client configuration

rc.local:

!/bin/sh
################################################################################
# rc.local file, use this to setup your boot-time configuration.               #
################################################################################

Extract l2tp
rpc.portmap
modprobe pppol2tp
openl2tpd -u 1701
l2tpconfig ppp profile modify profile_name=default default_route=yes options_file=/etc/l2tp.opts
l2tpconfig tunnel create tunnel_name=tun1 dest_ipaddr=205.159.243.1 secret=mypass persist=yes
l2tpconfig session create tunnel_name=tun1 user_name=client1 user_password=clientpass

Enter this command from the command line (bash shell): echo "persist" > /etc/l2tp.opts

Personal tools
Router software releases