Default route took 20s to display with 'route' command
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Default route took 20s to display with 'route' command
I have 2 NIC bonded together:
# ifenslave bond0 eth0 eth1
When my eth0 is unplugged, the 'route' command took 20s to display the final route (ie. the default route). However, if eth1 is unplugged, the route command display the entire(including the default route) routing table almost instantly.
What could be the cause why it took much longer to display the default route when eth0 is unplugged?
PS. my network connectivity is down when eth0 is unplugged.
For bonded interfaces they inherit the MAC Address of the first slave. The intent of bonding is to do round robin allocation of network traffic and thereby increase bandwidth. It is not a failover mechanism. If the NIC for which the MAC address of the bonded interface is down it really isn't sending the packet anywhere.
Your delay in seeing route is likely because it is trying to talk to the down NIC, timing out, then displaying the route table.
From the official howto, I have this description for bond=0 :
mode
Specifies one of the bonding policies. The default is balance-rr (round robin). Possible values are:
balance-rr or 0
Round-robin policy: Transmit packets in sequential order from the first available slave through the last. This mode provides load balancing and fault tolerance.
Seems that bond=0 does cater for fault tolerance (failover?) ?
Thanks !
Quote:
Originally Posted by jlightner
For bonded interfaces they inherit the MAC Address of the first slave. The intent of bonding is to do round robin allocation of network traffic and thereby increase bandwidth. It is not a failover mechanism. If the NIC for which the MAC address of the bonded interface is down it really isn't sending the packet anywhere.
Your delay in seeing route is likely because it is trying to talk to the down NIC, timing out, then displaying the route table.
The route command tries to resolve the destination addresses using DNS. If your network is down or the DNS servers are unreachable, it shows the routing table with the ip numbers.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.