LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-11-2004, 06:51 PM   #1
JordanH
Member
 
Registered: Oct 2003
Location: Toronto, Canada
Distribution: Ubuntu, FC3, RHEL 3-4 AS Retired: SuSE 9.1 Pro, RedHat 6-9, FC1-2
Posts: 360

Rep: Reputation: 30
Is there a way to set a keep alive in rp-pppoe?


Hi All,

In the past I have always run RedHat/Fedora but have recently switched to SuSE 9.1 Pro. I'm running into difficulties with rp-pppoe in that if there is no activity on the connection, the link goes dead. Sometimes, 10 minutes, sometimes 20, sometimes 30 minutes... you get the idea. Of course rp-pppoe recognizes this and restarts the connection.

It works, but not the optimal scenario since I run my home website and ssh server here.

What have I done incorrectly? Is there a 'keep alive' setting of which I should be aware?
 
Old 06-11-2004, 07:31 PM   #2
kbcnetau
Member
 
Registered: Dec 2003
Location: South Australia (ex-Devon, UK)
Distribution: SuSE, Slackware, Fedora, Debian, Knoppix
Posts: 141

Rep: Reputation: 15
There could be a few things causing the connection to drop.

Firstly, how are you configuring the connection? I've run my connection on SuSE 8.2, 9.0 and now 9.1 Right from the beginning, I decided that I wasn't happy with the way that YaST was setting things up, so I use adsl-config for configuration instead. This is just as simple (if not more so) than the YaST setup.

Running adsl-config, there is an option for a timeout value. If set to 0 (if I remember correctly), connection should be made for ever. If you set a positive value, you will go to dial-on-demand and only run for the duration that you specify.

Having said all that, until fairly recently, I was getting dropouts nearly every day at really odd times. This turned out to be due to the way that the Telstra (Australian telco) DSLAMs were configured in the exchange. Whilst they are *supposed* to work OK with ANSI compatible mode, they don't always do so. I reconfigured my modem to work with Telstra's standard of G.DMT and have since had uptimes of weeks. Info on DMT configuration may be found here: <http://shadow.sentry.org/~trev/adsl/dmtmode.html>

Hope something here is of assistance.

Cheers
 
Old 06-11-2004, 08:02 PM   #3
JordanH
Member
 
Registered: Oct 2003
Location: Toronto, Canada
Distribution: Ubuntu, FC3, RHEL 3-4 AS Retired: SuSE 9.1 Pro, RedHat 6-9, FC1-2
Posts: 360

Original Poster
Rep: Reputation: 30
Oops, the original reason I posted about using Fedora was because I planned to mention how I'd been using rp-pppoe for the last long while with no problems. I had configured that system with adsl-setup.

I tried the YaST setup but it would drop connections everytime I logged out of X. *erg*... My quick fix was to not use that anymore and use adsl-setup/start/stop to look after the connection. Works ok, except for the timeout.

One key change here is that I have moved condo's... although with the same ISP, maybe that has something to do with it. I will read into your link to see what's up.
 
Old 06-12-2004, 08:18 AM   #4
kbcnetau
Member
 
Registered: Dec 2003
Location: South Australia (ex-Devon, UK)
Distribution: SuSE, Slackware, Fedora, Debian, Knoppix
Posts: 141

Rep: Reputation: 15
Just to clarify for the international audience, "moving condos" == "moving to a new condominium [place of multiple occupancy]" - yes? I have to ask as I am English born, worked for Italian and USA companies and migrated to Australia - the language we call "English" can mean many things...

Anyhow, let's work through my logic to make sure that we've covered everything:
If you have moved your equipment from one location to another (if I got my assumption right!), let's look at what may have changed. I believe that you are in Toronto [Canada] so I'll assume that you're urban and:
a) an urban location may have many telephone exchanges
b) a telephone exchange in an urban location may have several DSLAMs serving subscribers

Now, where I am, we have one telephone exchange, one DSLAM. When we moved, earlier this year, we ended up with an extra mile (kilometer and a bit) of cable between us and the exchange - all brand new, so no more real losses than before. However, I got these wretched dropouts all the time. My research at the time pointed to the G.DMT solution which - thankfully - worked.

So, there are still a few variables to consider. Let us know what happens - having just been through this, I'd like to find a winning formula to "get your DSL sorted in six easy steps" ;-)

Cheers

BTW - like your sig; I guessed what it was, but a whois confirmed it
 
Old 06-13-2004, 03:33 PM   #5
JordanH
Member
 
Registered: Oct 2003
Location: Toronto, Canada
Distribution: Ubuntu, FC3, RHEL 3-4 AS Retired: SuSE 9.1 Pro, RedHat 6-9, FC1-2
Posts: 360

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by kbcnetau
Just to clarify for the international audience, "moving condos" == "moving to a new condominium [place of multiple occupancy]" - yes? I have to ask as I am English born, worked for Italian and USA companies and migrated to Australia - the language we call "English" can mean many things...
haha, yes, that is correct. I bought a new condominium in downtown Toronto and moved from the suburbs recently. That was a distance of ~40km(25miles) so it is most assuredly a different DSLAM. However, I figured all DSLAM's would be configured the same, seeing as it's the same ISP in the same city. *shrug* I didn't expect anything to change on their side. Keep in mind the biggest change here was a switch from Fedora to SuSE.

The dropouts seem to occur when there are 10 minutes of inactivity. I say this because as a test, I setup a crontab (ftping a dummie file) that ran every 9 minutes but skipped one interval every hour. With no other network activity, I can see all the cron jobs kick off but when one is skipped I get this message showing in the syslog.

pppd [17230]: Terminating connection due to lack of activity.

rp-pppoe is config'd to check the status every 2 minutes. So, it checks the connection, realizes it is down and brings it back up. d'oh, not the behaviour I want.

My theory is that there is an option in pppd for keep-alive pings that was default in Fedora but not in SuSE... rp-pppoe allows you to pass options to pppd when starting so I'm hoping this can be set there. A quick scan of the pppd man page didn't give me a clue so maybe you guys know what it is off hand.

Right now, I'm thinking that the trouble is not with the DSLAM but with my configuration of pppd simply because a) I don't have any problems while I'm using the box, b) the connection is terminated and does not error out or just drop and c) I don't know how to configure my DSL modem; I'd go as far as to say it isn't configurable by a user. (i.e. I can't telnet to it)

Quote:
Originally posted by kbcnetau So, there are still a few variables to consider. Let us know what happens - having just been through this, I'd like to find a winning formula to "get your DSL sorted in six easy steps" ;-)
Yes, many variables but I think it's just a matter of tracing it to exactly what is timing out. Hopefully it's just an ugly default config. I'll keep you informed.

Cheers,
J.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
default gateway not set by PPPoE, can't ping internet rproffit Linux - Networking 3 12-17-2007 05:29 AM
Is my server alive? jbhanc0125 Programming 1 06-28-2005 10:03 PM
How to keep screen alive ? jonald Linux - General 1 07-25-2004 10:18 PM
JRandom, you alive? nikano Linux - Newbie 2 04-14-2004 02:50 PM
adsl-status can't read pppoe PID file with rp-pppoe program setup Smarvy Linux - Newbie 2 03-13-2004 11:35 PM

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

All times are GMT -5. The time now is 12:17 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration