PPP: Difference between revisions

From Alpine Linux
(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...")
 
Line 1: Line 1:
= Configuring PPP =
= Install PPP =
Next up we need to configure our router to be able to dial a PPP connection with our modem.
Install PPP


{{cmd|apk add ppp-pppoe}}
{{cmd|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
== Configure PPP ==
 
== /etc/ppp/peers/yourISP ==
<pre>#
<pre>#
# PPP Configuration file
# PPP Configuration file
Line 72: Line 70:


== /etc/modules ==
== /etc/modules ==
Update modules to include pppoe:
Update modules to include pppoe and ipv6 if you are planning on using that:
<pre>pppoe</pre>
<pre>pppoe
ipv6</pre>


===  IPv6 ===
===  IPv6 ===

Revision as of 06:05, 8 August 2018

Install PPP

Install PPP

apk add ppp-pppoe

Configure PPP

#
# 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 and ipv6 if you are planning on using that:

pppoe
ipv6

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 ,