PPPoE package installation

The PPPoE package is installed by default, but can be missing if the configuration has been changed. To check if the PPPoE package is installed, type:

$ dpkg -s pppoeconf

If it is installed you should see the output on the package where two lines show this:

Package: pppoeconf

Status: install ok installed

If the package is not installed, type command below in the terminal:

$ sudo apt-get install pppoeconf

Config

  1. Open the terminal with Ctrl+Alt+T and type the command below:

    $ sudo pppoeconf
    
  2. Choose whether the config files can be modified.

  3. Popular option.

  4. Fill in the username that ISP gave you.

  5. Fill in the password that ISP gave you.

  6. Choose whether use the DNS server that peer gave you.

  7. Limited MSS problem.

  8. Choose whether start connection when boot.

  9. Choose whether start DSL connection now.

  10. Connection initiated.


Verification

  1. Get the IP.

    open the terminal with Ctrl+Alt+T and tap the command below:

    $ ifconfig
    

    you will see a interface named ppp0.

  2. Check ip route

    $ ip route
    default dev ppp0 scope link
    
  3. Resolve domain

    $ nslookup DOMAIN
    
  4. Visit website

    $ curl DOMAIN
    

Config Files

To config PPPoE, there are many configuration files will be modified:

  • /etc/network/interfaces
  • /etc/ppp/peer/dsl-provider
  • /etc/ppp/*-secrets

/etc/network/interfaces

  • Include the network interfaces configuration
  • Ubuntu use this file to config interfaces when boot

/etc/ppp/peer/dsl-provider

  • Include the pppoe configuration
  • The pppoeconf use this file to config pppoe when bring up interface ppp0

/etc/ppp/*-secrets

  • Record the mapping relations of username and password
  • There are many authentication methods such as CHAP,PAP,EAP.

results matching ""

    No results matching ""