PPP: Difference between revisions
m (+ Category:Networking) |
(simplification, references to man pages, completion) |
||
Line 1: | Line 1: | ||
{{TOC right}} | {{TOC right}} | ||
= | == Installation == | ||
PPP (Point-to-Point Protocol) allows multiple transports, eg. PPoE is PPP over Ethernet. | |||
=== PPPoE === | |||
{{cmd|apk add ppp-pppoe}} | {{cmd|apk add ppp-pppoe}} | ||
== Configure PPP == | == Configure PPP == | ||
=== PPP peer file === | |||
Such file is usually located as ''/etc/ppp/peers/<isp>''. See [https://ppp.samba.org/pppd.html pppd(8)] for all possible options. | |||
==== PPPOE ==== | |||
This example peer file is based on Debian's [https://salsa.debian.org/debian/ppp/-/raw/master/debian/extra/peers-pppoe peers-pppoe] extra file. | |||
<pre> | |||
user "myusername@realm" | |||
plugin rp-pppoe.so | |||
eth0 | |||
noipdefault | noipdefault | ||
usepeerdns | usepeerdns | ||
defaultroute | defaultroute | ||
persist | |||
noauth | |||
</pre> | |||
=== Authentication === | |||
CHAP authentication is most used one but there are other ones, see [https://ppp.samba.org/pppd.html pppd(8)]. | |||
==== ''/etc/ppp/chap-secrets'' ==== | |||
<pre> | |||
# Secrets for authentication using CHAP | |||
# client server secret IP addresses | |||
"myusername@realm" * "<your password>" | |||
</pre> | |||
== Kernel modules == | |||
''pppoe'' must be present in ''/etc/modules''. | |||
== ''ifupdown-ng'' intergration == | |||
To use ''/etc/network/interfaces'' with a ppp defintion automatically, ''ifupdown-ng-ppp'' package must be installed. | |||
{{cmd|apk add ifupdown-ng-ppp}} | |||
Example for PPP configuration in ''/etc/network/interfaces'', see [https://github.com/ifupdown-ng/ifupdown-ng/blob/master/doc/interfaces-ppp.scd interfaces-ppp(5)] for more info. | |||
<pre> | |||
auto ppp0 | |||
iface ppp0 | |||
ppp-provider isp | |||
</pre> | |||
[[Category:Networking]] | [[Category:Networking]] |
Revision as of 13:20, 8 March 2021
Installation
PPP (Point-to-Point Protocol) allows multiple transports, eg. PPoE is PPP over Ethernet.
PPPoE
apk add ppp-pppoe
Configure PPP
PPP peer file
Such file is usually located as /etc/ppp/peers/<isp>. See pppd(8) for all possible options.
PPPOE
This example peer file is based on Debian's peers-pppoe extra file.
user "myusername@realm" plugin rp-pppoe.so eth0 noipdefault usepeerdns defaultroute persist noauth
Authentication
CHAP authentication is most used one but there are other ones, see pppd(8).
/etc/ppp/chap-secrets
# Secrets for authentication using CHAP # client server secret IP addresses "myusername@realm" * "<your password>"
Kernel modules
pppoe must be present in /etc/modules.
ifupdown-ng intergration
To use /etc/network/interfaces with a ppp defintion automatically, ifupdown-ng-ppp package must be installed.
apk add ifupdown-ng-ppp
Example for PPP configuration in /etc/network/interfaces, see interfaces-ppp(5) for more info.
auto ppp0 iface ppp0 ppp-provider isp