LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-17-2009, 03:11 AM   #1
nicumarius
LQ Newbie
 
Registered: Mar 2009
Posts: 1

Rep: Reputation: 0
how to make a pppoe connection active all the time?


I have a pppoe connection to the internet and I've configured it with pppoeconf command on Ubuntu.

My problem is that every time I have to write the command pon dsl-provider cause I'm losing the connection. What I should do to keep my connection all the time?

In /etc/network/interfaces I have the following lines:
------------------------------------
auto lo
iface lo inet loopback


auto dsl-provider
iface dsl-provider inet ppp
pre-up /sbin/ifconfig eth0 up # line maintained by pppoeconf
provider dsl-provider

auto eth0
iface eth0 inet manual
------------------------------------
 
Old 05-17-2009, 09:20 AM   #2
rikijpn
Member
 
Registered: Jun 2007
Location: Japan
Distribution: Debian lenny, DSL, Solaris 10
Posts: 157

Rep: Reputation: 33
not pppoe's problem

You should really worry more about your connection than having to write that command every time. Why the hell are you losing your connection so often?
If your connection is that extremely unstable, then you should just buy a router that will connect whenever possible, and when disconnect, try to connect till it can (maybe that's the behavior you wish?). Even disconnected, you'd still be connected to your router (your computer would be the DHCP client), so when the connection gets restored, you'd be able to continue using it without having to type any command.

Another option would be to write a script(kind of like a daemon) to be run every so many minutes, to check the ping to some server or your ifconfig output, and if it seems like not to be connected, to run that command automatically so you get reconnected. But, you know, it's better to have router, safer and stuffs.
 
Old 05-17-2009, 10:21 AM   #3
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Do you have on demand in your conf file?

Quote:
# Bring link up on demand? Default is to leave link up all the time.
# If you want the link to come up on demand, set DEMAND to a number indicating
# the idle time after which the link is brought down.
DEMAND=no
#DEMAND=300
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
pppoe connection swop zefram Fedora 0 02-18-2009 07:47 AM
How to avoid pppoe connection automatically startup at boot time in UBUNTU? kevin_chn Ubuntu 4 12-31-2006 11:29 PM
Cannot make KDSL account/connection with updated pppd/2.4.4b1 pppoe plug-in slan57 Linux - Newbie 0 02-18-2006 06:35 PM
Connection Sharing(PPPoE) cccp Linux - Networking 2 09-01-2005 02:22 PM
GUI (KDE,Gnome) needs 5 min. to start with pppoe active.. TarasBulba Linux - Networking 2 12-26-2003 04:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration