Make DSL pppoe Automatically connect to internet after Ubuntu 10.04 Restart
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:
- Fix DSL pppoe connection problem with Network Manager in Ubuntu 9.10
- Ubuntu get IP and connect Internet from router with DHCP enabled
- How to share and connect remote ubuntu desktop
- Fix cannot connect to wired Internet problem in Ubuntu or Ubuntu vmware guest
- 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]
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]