LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   2 Nic on gentoo (https://www.linuxquestions.org/questions/linux-networking-3/2-nic-on-gentoo-458129/)

schweppes 06-25-2006 09:03 AM

2 Nic on gentoo
 
Hi

I have a server with 2 nics 4 ips subnet mask is 255.255.255.0. I noticed that all traffic goes on one nic. Maybe someone can help me, how to figuare out. To lead the traffic seperately for the nics?

Thnx in advance

musicman_ace 06-26-2006 04:38 AM

Do you want specific traffic to go to certain NICs, for instance:

NIC1 = FTP,HTTP, File sharing
NIC2 = SMTP, DNS, DHCP

Or are you looking for load balancing the traffic among the two?

imagineers7 06-26-2006 05:02 AM

Hello schweppes,


I think you need to know about bonding, multi linking /homing.

Please go through following thread
http://www.linuxquestions.org/questi...d.php?t=454748

Hope, this helps you

schweppes 06-26-2006 09:53 AM

thnx, i will read those.

Its a server in a datacenter with 2x100mbit link. I forgot to mention that sorry

and lets say eth0 has 2 ips and eth1 also. I would like to bind some services to one nic.
eth0 = pci card intel gt pro 1000
eth1 = onboard nic from 3com

but all traffic goes over eth0 somehow always. But it seems bonding is the solution. But if you have other segestions they are welcome.

If i wrote some words bad forgive me my english aint that good :)

imagineers7 06-28-2006 03:35 AM

Hi schweppes,

If bonding does not work for your case,
you may go for ip routing using iptables which will be far more
customizable than that of bonding. You may bind services to certain ip addresses or simply block those services from the ip addresses that you desire to.
Policy routing:-
http://www.linuxjournal.com/article/7134
Multihoming
http://en.wikipedia.org/wiki/Multihoming
Multilinking
http://lartc.org/howto/lartc.rpdb.multiple-links.html
Load balancing nic traffic
http://tetro.net/misc/multilink.html

Hope this helps you,

Also when you are finished with that, please post how you did it (Exact commands, so that in future some others will get benefited)


All times are GMT -5. The time now is 11:55 PM.