Prepare all information needed: username, password and server IP Address (public)
up to existing PPPoE configuration.
Commands for PPPoE Setup:
It will prompt you about configuration of PPPoE client that you want to use.
Fill with username and password that already prepared.
Fill with interface where PPPoE will dial to its server (toward WAN).
For dedicated connection, at option “demand value” choose “no”
Fill with IP address of DNS 1 and DNS 2.
Enter password which will be used (twice with confirmation).
With assumption that this firewall configuration (iptables) will use default
configuration then choose 0.
On last prompt, confirm that previous choices is right.
Then, you need to set up service name on pppoe.conf
Search for line with “SERVICENAME”, then add it. Enter without quotes.
Run PPPoE client.
If there is no problem found, then there will such information like:
Finally, your Linux PPPoE client setup is succeeded.
Restart PPPoE Client on Linux
Below is a simple script which can be used to restart PPPoE client on Linux.
FYI, Linux not shipped with built-in command to restart its PPPoE client.
The purpose of code above is to help administrator to restart PPPoE client
without open new connection to remote host.
Thanks for reading.