LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Automatic reconnection of pppoe (https://www.linuxquestions.org/questions/linux-networking-3/automatic-reconnection-of-pppoe-742464/)

Luc484 07-24-2009 08:29 AM

Automatic reconnection of pppoe
 
Hi! Since I installed Kubuntu, I noticed my pppoe connection (ADSL) is not automatically reconnecting anymore. I used to have Gentoo and when my carrier went away and then came back again, the pppoe connection used to reconnect without I had to do anything. Now I have to sudo pon dsl-provider very often. Is there any way to have it reconnect by itself automatically after my carrier is back?
Thanks!

rtg 07-25-2009 05:35 PM

Edit /etc/ppp/peers/dsl-provider and add "persist". This will force pppd to reopen the connection if it is terminated.

You can set the number of seconds to wait before renegotiation by "holdoff <sec>" parameter.

If that does not help, please post your dsl-provider file (removing all sensitive information).

Luc484 07-25-2009 06:23 PM

Persist seems to be already there:

Code:

# Minimalistic default options file for DSL/PPPoE connections

noipdefault
defaultroute
replacedefaultroute
hide-password
#lcp-echo-interval 30
#lcp-echo-failure 4
noauth
persist
#mtu 1492
#persist
#maxfail 0
#holdoff 20
plugin rp-pppoe.so eth0
usepeerdns
user <username>

Thanks for your answer!

rtg 07-26-2009 03:19 PM

Ok, try setting holdoff to some positive value, say, 10 seconds.

You may not be able to connect immediately after disconnect so this will give some time for link to reappear.

Alternatively, set maxfail to 0 that means unlimited reconnection attempts.

rtg 07-29-2009 12:53 PM

Ticket is on hold for next 24 hours.
Please reply if you have additional questions.

Luc484 07-29-2009 06:32 PM

My carrier is not disappearing any more so I can't test. I'll have to wait till another failure shows.

Luc484 07-31-2009 03:21 AM

Holdoff is not solving the problem, now I'm trying with maxfail 0.

New2Linux2 07-31-2009 10:11 AM

Not for nothing, but the # before persist needs to be removed to activate that particular bit. Right now it's just a comment, not an active command.

Luc484 07-31-2009 11:59 AM

In fact there is another persist command which is not commented and it's therefore active. Seems the command persist is not sufficient for some reason...

New2Linux2 07-31-2009 12:40 PM

Quote:

Originally Posted by Luc484 (Post 3626817)
In fact there is another persist command which is not commented and it's therefore active. Seems the command persist is not sufficient for some reason...

So there is. My eyes must be failing in my old age. :-|

Luc484 08-20-2009 02:19 AM

As far as I see, the problem is solved now! Maxfail did the trick!
Thanks!


All times are GMT -5. The time now is 01:41 PM.