Make DSL pppoe Automatically connect to internet after Ubuntu 10.04 Restart

This post was written by admin on August 12, 2010
Posted Under: General,Internet

I have been using sudo pppoeconf command to connect to web for a period of time in my Ubuntu 10.04 machine.

At the first time,I run following command in Applications->Accessories->Terminal:

sudo pppoeconf

to set the username and password,and then it connects to the web server.

But after reboot the machine,sudo pon dsl-provider doesn’t work,I need to type the original command again and set the username,password.In other words,every time I restart my machine,I need to type sudo pppoeconf and set user-name and password to connect to the web.

Here I found a way to solve this problem.It makes my machine automatically connect to web sever at start-up.

1.First,run following commands:

sudo pppoeconf

and set username and password.Skip this step if have this done ever.

2.Edit /etc/rc.local by:

sudo gedit /etc/rc.local

before exit 0,add following into the file:

#----------------for auto connect adsl

killall pppd

ifconfig eth0 up

pon dsl-provider

#----------------

Now,reboot.This works on my computer, you can try it.

Related posts:

  1. Fix DSL pppoe connection problem with Network Manager in Ubuntu 9.10
  2. Ubuntu get IP and connect Internet from router with DHCP enabled
  3. How to share and connect remote ubuntu desktop
  4. Fix cannot connect to wired Internet problem in Ubuntu or Ubuntu vmware guest
  5. Ubuntu connect to internet via Android phone as USB Modem

    Reader Comments

    Yes! It works! I used to run “pon dsl-provider” each time when my system boots up. You saved my time.. :)

    Thanks!

    [Reply]

    #1 
    Written By Prasanna SP on September 12th, 2011 @ 4:34 am

    Great… and how to sharing internet using pppoeconf, I’ve followed the following way http://ubuntuforums.org/showthread.php?t=91370,
    but still failed to share its Internet.

    [Reply]

    #2 
    Written By zeads on October 27th, 2011 @ 1:48 am

    Add a Comment

    required, use real name
    required, will not be published
    optional, your blog address