LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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

Reply
 
Search this Thread
Old 10-26-2006, 11:08 PM   #1
Akhran
Member
 
Registered: Aug 2005
Distribution: Debian 'lenny'
Posts: 208

Rep: Reputation: 30
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.

Please advise.

Thanks !
 
Old 10-27-2006, 02:31 PM   #2
MensaWater
Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,028
Blog Entries: 5

Rep: Reputation: 791Reputation: 791Reputation: 791Reputation: 791Reputation: 791Reputation: 791Reputation: 791
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.
 
Old 10-29-2006, 08:27 PM   #3
Akhran
Member
 
Registered: Aug 2005
Distribution: Debian 'lenny'
Posts: 208

Original Poster
Rep: Reputation: 30
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.
 
Old 11-04-2006, 05:59 AM   #4
osvaldomarques
Member
 
Registered: Jul 2004
Location: Rio de Janeiro - Brazil
Distribution: Conectiva 10 - Conectiva 8 - Slackware 9 - starting with LFS
Posts: 519

Rep: Reputation: 34
Hi Akhran,

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.

To prevent DNS resolution, use the "route -n".
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
I am not able to add a new route to my route table using route command prashanth s j Linux - Networking 2 09-03-2005 05:34 AM
Route to subnet exists but I get "Network unreachable" when adding default route fciuffani Linux - Networking 4 08-18-2004 03:11 PM
ADSL as a Alternate route or backup route bhagat2000 Linux - Networking 0 05-27-2004 04:17 PM
Route dialup modem packets back through dialup instead of default route cable modem jogress Linux - Networking 1 10-21-2003 04:48 PM
Working with 'route' and unwanted route entries pioniere Linux - Networking 6 02-05-2003 01:14 PM


All times are GMT -5. The time now is 09:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration