On 5 Sep 2000, Ben Logan wrote:

> I keep a default route set for eth0 to another local computer.        When someone
> runs 'ifup ppp0' it destroys that route and replaces it with the route to my
> isp.  That's fine, except that I want to put the other route back when 'ifdown
> ppp0' is run.  So I created /etc/ppp/ip-down.local and made it executable. 
> However, it won't set the route!  Can anyone tell me what I'm doing wrong.
> 
[SNIP]
> 
> Output of cat /etc/ppp/ip-down.local:
> #!/bin/bash
> 
> route add default gw 192.168.1.40 eth0
> 
change it to:
/sbin/route add default gw 192.168.1.40 eth0

Route will not be on your path when the script is run.




_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to