PPP: Difference between revisions

From Alpine Linux
mNo edit summary
No edit summary
Line 61: Line 61:
ppp-provider isp
ppp-provider isp
</pre>
</pre>
== Tips ==
=== pppoeconf ===
Debian created ''[https://sources.debian.org/data/main/p/pppoeconf/1.21+nmu1/pppoeconf pppoeconf]'' tool which helps configuring PPPoE. First some utils have to be installed.
{{cmd|apk add ppp-pppoe newt gettext sed}}
{{cmd|wget https://sources.debian.org/data/main/p/pppoeconf/1.21+nmu1/pppoeconf}}
{{cmd|chmod +x ./pppoeconf && ./pppoeconf}}


[[Category:Networking]]
[[Category:Networking]]

Revision as of 13:35, 8 March 2021

Installation

PPP (Point-to-Point Protocol) allows multiple transports, eg. PPPoE 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

pppoe must be present in /etc/modules when using PPPoE.

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

Tips

pppoeconf

Debian created pppoeconf tool which helps configuring PPPoE. First some utils have to be installed.

apk add ppp-pppoe newt gettext sed

wget https://sources.debian.org/data/main/p/pppoeconf/1.21+nmu1/pppoeconf

chmod +x ./pppoeconf && ./pppoeconf