This content has been marked as final. Show 3 replies
john_lilburne wrote:Probably not what you want.
To my surprise, it's possible to put more than one entry in /etc/defaultrouter. It's even documented in the man page and if you do it you end up with what looks like more than one default route. But what's does it mean to have more than one default route?
Does the kernel apply some kind of heuristic to decide which one to use? Does the default route with no device get ignored?Round robin.
What do you mean by "no device"? You have to have an IP destination or the route couldn't be configured. But that IP destination doesn't have to be currently available. Unplugging a cable doesn't take an IP interface "DOWN", nor does it modify the routing table.
If you need dynamic, failure-resilient routing, then you'd have to run a routing update protocol. The contents of /etc/defaultrouter are for static routes.