12,338
edits
This is the support site for Andrews & Arnold Ltd, a UK Internet provider. Information on these pages is generally for our customers but may be useful to others, enjoy!
mNo edit summary |
|||
(5 intermediate revisions by the same user not shown) | |||
[[Category:Incoming L2TP]]
See further below for
== Linux / xl2tpd ==▼
<ol>▼
<li>Ensure the following kernel options are set or the corresponding modules are available:</li>▼
<ol>▼
<li><code>CONFIG_PPPOL2TP</code>▼
<li><code>CONFIG_L2TP</code>▼
</ol>▼
<li>Install xl2tpd and pppd on your Linux router.</li>▼
<li>Edit <code>/etc/xl2tpd/xl2tpd.conf</code> to contain the following:<br />▼
<code>[lac aaisp]<br />▼
lns = l2tp.aaisp.net.uk<br />▼
require authentication = no<br />▼
pppoptfile = /etc/ppp/options.aaisp</code></li>▼
<li>Create <code>/etc/ppp/options.aaisp</code> containing the following (obviously change the name and password to match your L2TP login details):<br />▼
<code>+ipv6<br />▼
ipv6cp-use-ipaddr<br />▼
name xyz@a.X<br />▼
password Your_xyz@A.X_password<br />▼
noauth</code></li>▼
<li>Create the xl2tpd control file:<br />▼
<code>mkdir -p /var/run/xl2tpd<br />▼
touch /var/run/xl2tpd/l2tp-control</code></li>▼
<li>Start the xl2tpd service (for systemd, use service command for older RC systems):<br />▼
<code>systemctl start xl2tpd</code></li>▼
<li>Tell the daemon to connect to aaisp:<br />▼
<code>echo "c aaisp" > /var/run/xl2tpd/l2tp-control</code></li>▼
</ol>▼
This should give you a new PPP device which encapsulates the L2TP connection.▼
== Troubleshooting ==▼
Logs are written /var/log/daemon.log▼
If you see "No such tunnel", you might want to try restarting the daemon▼
=Ubuntu / Network Manager =
#Connect/disconnect via the network icon on the taskbar (pic below)
<gallery heights=
NetworkManagerL2TP1.png|Add a L2TP connection
NetworkManagerL2TP2.png|Enter in the settings
NetworkManagerL2TP3.png|Connect/disconnect
</gallery>
▲<ol>
▲ <li>Ensure the following kernel options are set or the corresponding modules are available:</li>
▲ <ol>
▲ <li><code>CONFIG_PPPOL2TP</code>
▲ <li><code>CONFIG_L2TP</code>
▲ </ol>
▲ <li>Install xl2tpd and pppd on your Linux router.</li>
▲ <li>Edit <code>/etc/xl2tpd/xl2tpd.conf</code> to contain the following (adjust to suit):<br />
▲<code>[lac aaisp]<br />
▲ lns = l2tp.aaisp.net.uk<br />
▲ require authentication = no<br />
#redial = yes<br />
#redial timeout = 15<br />
#max redials = 9999<br />
#autodial = yes</code></li>
▲ <li>Create <code>/etc/ppp/options.aaisp</code> containing the following (obviously change the name and password to match your L2TP login details):<br />
▲<code>+ipv6<br />
▲ipv6cp-use-ipaddr<br />
▲name xyz@a.X<br />
▲password Your_xyz@A.X_password<br />
▲noauth</code></li>
▲ <li>Create the xl2tpd control file:<br />
▲ <code>mkdir -p /var/run/xl2tpd<br />
▲touch /var/run/xl2tpd/l2tp-control</code></li>
▲ <li>Start the xl2tpd service (for systemd, use service command for older RC systems):<br />
▲ <code>systemctl start xl2tpd</code></li>
▲ <li>Tell the daemon to connect to aaisp:<br />
▲ <code>echo "c aaisp" > /var/run/xl2tpd/l2tp-control</code></li>
▲</ol>
▲*This should give you a new PPP device which encapsulates the L2TP connection.
*You will then need to figure out what you want to route up the tunnel.
▲=== Troubleshooting ===
▲Logs are written /var/log/daemon.log
▲If you see "No such tunnel", you might want to try restarting the daemon
|
edits