Here I describe how to setup PPPOE (PPP Over Ethernet) on a DebianLinux box.

  1. First you have to configure your ethernet interface. You need to make sure that your ethernet interface does not have an IP assigned to it or the PPPOE driver will not work. I set this up by editing /etc/network/interfaces to have my ethernet interface defined like this:

    auto eth0
    iface eth0 inet static

    • address 0.0.0.0
      netmask 255.255.255.0

  2. After you've made these changes to your /etc/network/interfaces file you can make the changes take effect by running:

    # ifdown eth0
    # ifup eth0

  3. When you check your interfaces you should see this (note: there will be a couple more lines after this, they don't matter. The important thing is that you do not see an IP address assigned to your ethernet interface):

    # ifconfig eth0
    eth0 Link encap:Ethernet  HWaddr 00:A0:24:88:16:06

    • UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

  4. Now you need to install and configure PPPOE:

    # apt-get install pppoe
    # vi /etc/ppp/peers/dsl-provider (configure your username for your account)
    # vi /etc/ppp/pap-secrets (and configure your username and password)

    • username *       password

  5. Start your PPPOE session

    # pon dsl-provider

  6. You can watch the connection with one of these commands:

    # tail -f /var/log/messages a sucessful connection should look something like this:

    Jul 26 08:42:34 bone kernel: PPP: version 2.3.7 (demand dialling)
    Jul 26 08:42:34 bone kernel: PPP line discipline registered.
    Jul 26 08:42:34 bone kernel: registered device ppp0
    Jul 26 08:42:34 bone pppd[348]: pppd 2.4.1 started by root, uid 0
    Jul 26 08:42:34 bone pppd[348]: Serial connection established.
    Jul 26 08:42:34 bone pppd[348]: Using interface ppp0
    Jul 26 08:42:34 bone pppd[348]: Connect: ppp0 <--> /dev/pts/0
    Jul 26 08:42:37 bone kernel: PPP BSD Compression module registered
    Jul 26 08:42:37 bone kernel: PPP Deflate Compression module registered
    Jul 26 08:42:38 bone pppd[348]: local  IP address 165.121.25.98
    Jul 26 08:42:38 bone pppd[348]: remote IP address 165.121.25.1


CategoryGeek

PppoeSetup (last edited 2001-07-26 18:34:28 by AdamShand)