On Wed, 10 Apr 2002, Chris Friesen wrote:
> However, when you then up the interface, the routes do not come back up
> automatically. This is the part that I don't agree with.
> Addresses, automatic routes, and custom rules either stay in effect or are
> brought back up by the system when an interface is downed and then upped. The
> only exception to this is custom routes.
Check this implementation of static routes (new version
is coming soon...):
The exact patches for static routes:
> So, what do you guys think? Is this a reasonable thing to do? I think that
> makes the system nicely symmetrical, as opposed to the asymmetrical handling
> current kernels.
The patches are not perfect but I hope they can help you:
ip route add XXX proto static
Such routes survive only device state changes. They are
removed when the last IP address is deleted or the device is
unregistered. Of course, it is recommended that the multipath
routes are recreated when a device used in nexthop is unregistered
or all its addresses are deleted. So, it needs some scripting and
help from user space.
Julian Anastasov <ja@xxxxxx>