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!