Wrong way round. You need a route command for eth0-----Original Message-----
From: Rick Marshall <[EMAIL PROTECTED]>
To: Bryan Taylor <[EMAIL PROTECTED]>
Cc: linux ppp <[EMAIL PROTECTED]>
Date: Wednesday, January 27, 1999 7:28 AM
Subject: Re: Routing Problem with Ethernet and PPPTake a short cut ppp2.3.5 has dial on demand built in.Good luck
Rick
Thanks, just downloaded and installed 2.3.5, still had a routing problem, but got it straightened out, my local net was routing through my ppp gateway to get back to me. I couldn't telnet to my linux box unless I was connected to the internet, turned out all I had to do was remove the "route add default gw 192.168.1.10 eth0" line from my rc.inet1 file.
Still have to manually type in "route add default ppp0" once I am connected, what script file can I place that command into to automatically type it in once connected????
Haven't looked at dial on demand yet... Thanks again!
route add -net 192.168.1.0 netmask 255.255.255.0 eth0
this should be in /etc/rc.d/rc.inet1 (Slackware, don't know about RH )
then when ppp0 comes up it will automatically add a default route - provided there isn't one already.
All the ppp config files are in /etc/ppp. Basically you need a line with "demand" to establish dial on demand. You also need to turn off the idle timer if you want permanent connection or leave it on for dod with auto exit on idle. :-)
Rick
