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.
By "no device" I meant that the first route listed as default didn't have anything under the "Device" column in the netstat output. Kinda hard to tell from my posting - I should have used one of the HTML tags to format the posting but I'm still learning.
I see that iin the output now. That's pretty odd since it appears to be a perfectly normal route. Multiple default routes are so rarely used that I'm not sure if that's normal behavior or not.