[plug] ppp + eth0 default route problem

Michael Hunt michael.j.hunt at usa.net
Fri Jan 31 09:35:00 WST 2003


On Fri, 2003-01-31 at 08:09, I am the LinuxAlien wrote:
> I have a gateway on the LAN and normally use that so my gate way is set to 
> that computer. Sometimes such as late at night the gateway isn't available 
> so i use a local ppp connection. How can i set it up so i don't have to 
> take eth0 down to use the ppp connection?
> Thanks
> Tim
> 
> LinuxAlien
> 
> Riverton, Perth, WA

Delete the default route to your gateway on staring your ppp connection
and add it back in when it the coonnection drops.

man route is your friend.

You could probaly put this in a script that drops the default route,
runs ppp for you and then listens/checks for when the connection is
dropped and deletes the route.

Thats how I would set it up if it was me.

Michael Hunt




More information about the plug mailing list