[plug] ppp + eth0 default route problem

Lawrie Abbott lawrieabbott at iinet.net.au
Fri Jan 31 19:11:19 WST 2003


Michael Hunt wrote:
> 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
> 
> 
> 
> 
Try adding "defaultroute" to /etc/ppp/options or peers. See man pppd.

--Lawrie



More information about the plug mailing list