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! |
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). |
Persist seems to be already there:
Code:
# Minimalistic default options file for DSL/PPPoE connections |
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. |
Ticket is on hold for next 24 hours.
Please reply if you have additional questions. |
My carrier is not disappearing any more so I can't test. I'll have to wait till another failure shows.
|
Holdoff is not solving the problem, now I'm trying with maxfail 0.
|
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.
|
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...
|
Quote:
|
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. |