UTD + Linux + Technical questions

swordfish1

Expert Member
Joined
Apr 10, 2005
Messages
3,304
Reaction score
6
Ok guys,

I am trying to get everything smoothly running on my Mandrake 10 box, but I am experiencing some problems, which are a way out of my Linux competence.

My main problem is how to make the modem reconnect automagicaly when the connection drops?

My UTD is installed as an ADSL connection so I start it with adsl-start and I have adsl-stop and adsl-status. I can write some script which uses this commands, checking the connection all the time and when it detects that it is gone, issue adsl-stop and adsl-start. The problem with that is that it does not work. My UTD does not want to reconnect after dropped connection ever, unless I unplug the power cable and plug it again, so I sort of have to restart it on hardware level before reconnection. I always issue adsl-stop before attempting adsl-start to make sure that it has been stopped properly, but this does not help.

Have some more questons, but I am busy gathering more details before I post them.
 
Used the easy way out on FC3 with system-config-network and setting the (gui) options for dial on demand and reconnect. Haven't really fiddled with the standard scripts and it seems to work OK.
 
ok, lets rephrase the question:

I want 24x7 internet availability on the network, if connection drops it must be detected and the connection must be re-established without my intervention.

I am using my box for few other purposes so reinstalling it with some firewall-only distro is out of question.

So GUI, script, does not matter, as long as it solves the problem ... any help?
 
I'm not familiar with Mandrake specifically, use Fedora for other things as well, including development work, SMTP, proxy, etc...
If it disconnects and Windoze or Linux needs the connection, it will reconnect without intervention.

Will the adsl-connect and ifcfg-iburst scripts help? Along perhaps with the pppd and pppoe invocation lines (as per ps)?
 
Last edited:
in your peer config file, add the line:
persistant

easy :)
 
thanks daffy!

I am going to add this now and see how it goes over the next few days

I appreciate very much your help
 
hmm it seems that this is already in the peer file ...

I did setup my connection as an ADSL connection so maybe there is something that is different for iBurst, which I am unaware of. I think the modem does not get properly reset after the connection drops, so I have to power-off-on the modem to get it working again.
 
I'm running RH Linux 8. I battled to get a continuous connection. I've currently got the system set for On Demand with a 9000 second timeout. It seems to be working.
 
well, mine does not seem to timeout, it dies only when the physical connection drops for whatever reason (sometimes happens few times in an hour, sometimes once every few days). But even adsl-stop followed by adsl-start does not help reconnecting ... unless I drop the power to the modem briefly before I do adsl-start.
 
I've noticed something similar as well. At times - well last month with all this booha, an adsl-start would not even help. Working from a wireless link @ home, my easiest solution was to issue the reboot command - even then on start up, I would have to manually start Squid as it would complain that it could not get hold of a DNS server. I had to write a script for my colleagues to run on such a reboot, though not always. I definately want to get active with the JAWUG group as then I could possibly rake in assistance from the Experts like Daffy.
 
Heya,

I assume what you're tring to get at is that even though the system is aware of the disconnection the reconnect keeps hanging... I've had the same problem.

Generally what I do is to use mii-tool to reset & re-negotiate the ethernet connection to the UTD. After that a adsl-start works like a bomb ...

Generally I use a script that does the following:
On ip-up (using ip-up.local - fc3) it starts a cron job that monitors 3 different IPs. if all of them fail it calls:

adsl-stop;sleep 3;mii-tool -Rr eth1;sleep 3;adsl-start

Seems to work rather well.

Hope this points you in the right direction.

R
 
thanks regardtv, I am going to try this now ... step one is to figure out what the hell mii-tool is :-)
 
thanks regardtv, I've changed my script to match. I've had no need for it yet, but will continue to monitor my system.
 
Top
Sign up to the MyBroadband newsletter
X