Date created: Friday, January 12, 2018 12:14:00 PM. Last modified: Sunday, September 8, 2024 12:11:05 PM

PPPoE Setup

# Install the PPP client protocol support and PPPoE cliet
yum install ppp rp-pppoe

# Add the username details to the CHAP/PAP PPP auth files /etc/ppp/chap-secrets and/or /etc/ppp/pap-secrets:

"myuser@realm.net"       *       "secret_password"

The PPPoE client looks for interfaces called "ppp*". Create ppp0 and specify the Ethernet interface is should use:

cat /etc/sysconfig/network-scripts/ifcfg-ppp0
TYPE=xDSL
DEVICE=ppp0
BOOTPROTO=dialup
USERCTL=no
IPV6INIT=no
PEERDNS=yes
PIDFILE=/var/run/pppoe-adsl.pid
FIREWALL=NONE
PING=.
PPPOE_TIMEOUT=30
LCP_FAILURE=3
LCP_INTERVAL=20
CLAMPMSS=1440
CONNECT_POLL=6
CONNECT_TIMEOUT=60
PERSIST=no
SYNCHRONOUS=no
DEFROUTE=yes
USER=myuser@realm.net
ETH=enp2s0
#PROVIDER=provider
DEMAND=no
ONBOOT=yes

The PPPoE client installs a bunch of scrtips:

[root@MaestrOS network-scripts]# which adsl-start
/sbin/adsl-start
[root@MaestrOS network-scripts]# which adsl-stop
/sbin/adsl-stop
[root@MaestrOS network-scripts]# ls -l /sbin/adsl*
lrwxrwxrwx. 1 root root 11 Jan 23 17:34 /sbin/adsl-start -> pppoe-start
lrwxrwxrwx. 1 root root 10 Jan 23 17:34 /sbin/adsl-stop -> pppoe-stop
[root@MaestrOS network-scripts]# ls -l /sbin/pppoe-*
-rwxr-xr-x. 1 root root 11042 Aug  2  2017 /sbin/pppoe-connect
-r-xr-xr-x. 1 root root 18472 Jun 10  2014 /sbin/pppoe-discovery
-rwxr-xr-x. 1 root root 36896 Aug  2  2017 /sbin/pppoe-relay
-rwxr-xr-x. 1 root root 54032 Aug  2  2017 /sbin/pppoe-server
-rwxr-xr-x. 1 root root 12855 Aug  2  2017 /sbin/pppoe-setup
-rwxr-xr-x. 1 root root 20104 Aug  2  2017 /sbin/pppoe-sniff
-rwxr-xr-x. 1 root root  6454 Aug  2  2017 /sbin/pppoe-start
-rwxr-xr-x. 1 root root  2664 Aug  2  2017 /sbin/pppoe-status
-rwxr-xr-x. 1 root root  3590 Aug  2  2017 /sbin/pppoe-stop

User adsl-start and adsl-stop to start/stop the PPPoE session.

Previous page: 'nmcli' Notes
Next page: 'tc' Notes