ip-up style scripts
Posted: Fri Jul 29, 2005 1:05 pm
Hi Everyone,
Is it possible to set a script to execute when the status of an interface changes?
I need to be able to add/delete routes from the routing table when a pppoe-client interface comes up/goes down.
I cannot use Netwatch to do it, because there is already a route in place that will make everything reachable. Thus I will always be able to ping an IP, whether the pppoe interface is up or down.
Any suggestions?
Thanks
Is it possible to set a script to execute when the status of an interface changes?
I need to be able to add/delete routes from the routing table when a pppoe-client interface comes up/goes down.
I cannot use Netwatch to do it, because there is already a route in place that will make everything reachable. Thus I will always be able to ping an IP, whether the pppoe interface is up or down.
Any suggestions?
Thanks