Create PPPoE Connection on Ubuntu Server ...

Create PPPoE Connection on Ubuntu Server

01. PPPoE package installation

sudo apt install pppoeconf

02. Then insert DSL cable to the lan port of your computer and enter the following command to set up PPPoE connection.

sudo pppoeconf

03. Set defaultroute yes or no.

04. Add username and password.

05. Yes to use peer DNS if you don’t have a local DNS resolver.

06. Yes to set Limited MSS 1412

07. You want to connect at start up?

08.Do you want a ppoe connection established now?

09. To disconnect or run.

sudo poff
sudo pon dsl-provider

10. To edit username or password.

sudo nano /etc/ppp/chap-secrets

11. Additional information if needed to modify settings...

sudo nano /etc/network/interfaces

And

# The loopback network interface
auto lo
iface lo inet loopback

auto dsl-provider
iface dsl-provider inet ppp
        pre-up /sbin/ip link set dev eth1 up # line maintained by pppoeconf
        provider dsl-provider

auto eth0
iface eth0 inet manual

12. Disable resolv pppo config edit file: (optional)

sudo nano /etc/ppp/peers/dsl-provider

change it:

usepeerdns

to:

#usepeerdns

PPPoE connection will not overwrite your settings.

Automatic reconnection:

Try setting holdoff to some positive value, say, 10 for 10 seconds.
Set maxfail to 0 that means unlimited reconnection attempts.

maxfail 0
holdoff 10

...