PPP

From Alpine Linux
Revision as of 06:02, 8 August 2018 by Ty99 (talk | contribs) (Created page with "= Configuring PPP = Next up we need to configure our router to be able to dial a PPP connection with our modem. {{cmd|apk add ppp-pppoe}} Check that the interface between yo...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Configuring PPP

Next up we need to configure our router to be able to dial a PPP connection with our modem.

apk add ppp-pppoe

Check that the interface between your router and modem is eth1, or change it. Enter your credentials at the bottom of the file or use /etc/ppp/chap-secrets

/etc/ppp/peers/yourISP

#
# PPP Configuration file
#

nolog

# Try to get the IP address from the ISP
noipdefault

# Try to get the name server addresses from the ISP
usepeerdns

# Use this connection as the default route.
defaultroute
defaultroute-metric 300

# detatch after ppp0 interface is created
updetach

# Replace previous default route
# This requires a special patch to ppp
# https://sources.debian.net/src/ppp/2.4.7-1%2B1~exp1/debian/patches/cifdefroute.dif/
# replacedefaultroute

# rp-pppoe plug-in makes PPPoE connection so rp-pppoe package is not needed
# Possibly, you may need to change interface according your configuration
plugin rp-pppoe.so eth1

# Uncomment if you need on-demand connection
#demand

# Disconnect after 300 seconds (5 minutes) of idle time.
#idle 300

# Hide password from log entries
hide-password

# Send echo requests
lcp-echo-interval 20
lcp-echo-failure 3

# Do not authenticate ISP peer
noauth

# Control connection consistency
persist
maxfail 0

# Control MTU size if your ISP does not force it
#mtu 1492

user "username@yourISP.tld"

# Compression
bsdcomp 15
deflate 15

/etc/ppp/chap-secrets

Enter in your login credentials

# Secrets for authentication using CHAP
# client			server	secret			IP addresses
"username@yourISP.tld"	        *	"<your password>"

/etc/modules

Update modules to include pppoe:

pppoe

IPv6

Add this to your ppp configuration. This tells PPP to get an ipv6 address. Note the comma is needed.

# Enable IPV6
+ipv6 ipv6cp-use-ipaddr
ipv6 ,