PPPoE Pass Through

Install PPPoE

$ sudo apt install pppoe pppoeconf

Configure

$ sudo pppoeconf

Check the configuration

$ ip a show ppp0

Add default gateway

$ sudo ip route add default dev ppp0

Turn On and Off

$ sudo pon dsl-provider
$ sudo poff

Create startup script

$ sudo vi /etc/ppp/ip-up.d/10dslprovider

The contents of the file is

#!/bin/sh
/sbin/ip route add default dev ppp0

Configure the permission of the script

$ sudo chmod 755 /etc/ppp/ip-up.d/10dslprovider

Auto connect after reboot

$ sudo crontab -e
@reboot sleep 30; /etc/cron.hourly/mydns

Notice: Insert a sleep timer between reboot and connection script. It is required to guarantee the time for network system starting before connection script is roaded.

Last Updated on July 9, 2021 by lama-admin


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *