LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-12-2003, 07:52 PM   #1
angoyal
LQ Newbie
 
Registered: Aug 2003
Location: Foster City
Distribution: gentoo
Posts: 1

Rep: Reputation: 0
Multiple NIC routing question.


I have a solaris box and linux box with multiple IP addresses and multiple NICs (actually each IP address is bound to one physical NIC)

here is my problem, it seems that all the outgoing packets are routed over hme0.

is this normal?

Code:
# nslookup multinicbox

Name:    multinicbox.foo.com
Addresses:  xxx.yy.zzz.216, xxx.yy.zzz.214, xxx.yy.zzz.241, xxx.yy.zzz.240, xxx.yy.zzz.239


$ netstat -rn

Routing Table: IPv4
  Destination           Gateway           Flags  Ref   Use   Interface
-------------------- -------------------- ----- ----- ------ ---------
xxx.yy.zzz.0         xxx.yy.zzz.214        U        1   5366  hme0
xxx.yy.zzz.0         xxx.yy.zzz.216        U        1      0  qfe0
xxx.yy.zzz.0         xxx.yy.zzz.240        U        1      0  qfe2
xxx.yy.zzz.0         xxx.yy.zzz.241        U        1      0  qfe3
xxx.yy.zzz.0         xxx.yy.zzz.239        U        1      0  qfe1
224.0.0.0            xxx.yy.zzz.214        U        1      0  hme0
default              172.20.113.252        UG       1  12867
127.0.0.1            127.0.0.1             UH       4   2458  lo0

$ netstat -in

Name  Mtu  Net/Dest      Address        Ipkts  Ierrs Opkts  Oerrs Collis Queue
lo0   8232 127.0.0.0     127.0.0.1      570050 0     570050 0     0      0
hme0  1500 xxx.yy.zzz.0  xxx.yy.zzz.214 73394375 9497  6660773 26961 160824 0
qfe0  1500 xxx.yy.zzz.0  xxx.yy.zzz.216 59800755 469   525    0     2      0
qfe1  1500 xxx.yy.zzz.0  xxx.yy.zzz.239 67374225 806   620    0     2      0
qfe2  1500 xxx.yy.zzz.0  xxx.yy.zzz.240 67137739 1053  592    0     4      0
qfe3  1500 xxx.yy.zzz.0  xxx.yy.zzz.241 67186838 511   843    0     5      0
What should I do to this routing table so that each NIC (and IP address) can take care of its own incoming and outgoing traffic without routing over hme0?

Sorry for the rambling post, but there is something wrong with the routing tables, but I do not know what it is!
 
Old 08-27-2003, 02:56 PM   #2
JoeDuncan
Member
 
Registered: Aug 2003
Location: Ottawa
Distribution: Redhat 5.2, 6.0, 6.1, Mandrake 7.2, 8.0, 9.1, 9.2, 10.0, Gentoo, Debian 3.1r0
Posts: 224

Rep: Reputation: 30
Hrm.. I don't know Solaris, and it's been awhile since I played with routing tables, but something looks funny about this line:

224.0.0.0 xxx.yy.zzz.214 U 1 0 hme0

Since hme0 shows up twice in the routing table, and none of the other NICs do, your problem might lie here...
 
  


Reply



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
Routing to multiple gateways The Jesus Linux - Networking 6 09-20-2012 01:58 AM
Advanced Networking - Multiple gateways, routing question/shorewall micaheli Linux - Networking 2 09-30-2004 12:05 AM
routing 3 nic 2pc SchwipSchwap Linux - Newbie 1 07-23-2004 10:01 PM
Routing multiple subnets to multiple wans raven1000x Linux - Networking 1 03-10-2004 02:29 AM
Multiple Interface routing question kongfused Linux - Networking 2 07-01-2003 07:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:14 PM.

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
Open Source Consulting | Domain Registration