On Mon, Oct 04, 1999 at 09:21:39PM -0500, Lourdes A Jones wrote:
> I've given up and just added 'route add default $1' to my /etc/ppp/ip-up
> script.

I did the same thing.  Even that wasn't working though, so I decided to
examine the diald source code a bit and found that the addroute script is
run immediately after diald attempts to add defaultroute.  So I made that
script and still it wasn't working.  I had been examining the routing
table closely while also studying the output of 'ps axf' and it kind of
looked like it worked when not running at the same time as all the other
scripts, so I put a 'sleep 2' just before the 'route add default gw ...'
and now it succeeds _every_ time.  whoop!

Here's my addroute script:

#!/bin/sh
#
# <iface> <netmask> <local-ip> <remote-ip> <metric>

echo "$@" > /tmp/defaultroute.out

if [ "$1" = "ppp0" ]; then
  sleep 2
  /sbin/route add default gw "$4" metric "$5" netmask "$2" dev "$1"
fi


> 
> > Also, there are often two identical proxy devices..  sl0 and sl1.
> 
> It means that diald failed to drop the first connection.  This is normally a
> timing problem.  If you use IDE drives, do you set the umasq flag
> (hdparm -u1 <drive>) or use dma for transfers?

I don't even know how to check if this is true.  Can you tell me a little
about what the 'hdparm -u1 <drive>' command does?  Sounds interesting.  I
do use an old IDE drive (800MB).  dma is Greek to me.

> 
> > The kernel is 2.2.10 and my machine is 486sx 33 with 8 megs
> > ram.  Is my machine too slow?
> 
> 486dx-33, 4meg worked without problems here (though I have since upgraded
> and I never touched Xwindows).  The main question is what else are you doing
> with that machine.  If it's just acting as a gateway/router then you should
> be fine.

I'm running a script that checks to see if my dsl link is up and switches
automatically between dsl and diald.  That's a bit of a resource hog.  I'm
also running sendmail as a proxy email server.  syslogd seems to be very
active.  Generally I don't have much trouble with resources though.

> 
> Lourdes


Thanks for your help!

- Ben


-
To unsubscribe from this list: send the line "unsubscribe linux-diald" in
the body of a message to [EMAIL PROTECTED]

Reply via email to