Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
Ok, I first started out thinking that this was more related to iptables/firewall issues so I started a post in there, but as I learned a bit more with linux networking it is seeming to be related more to routing. Now, lemme explain the situation
I am going to a college that has a nice chunk of bandwidth (dual OC-3's and a T3), but they only allow roughly 100kb/s per IP to students, so I figured get a few network cards and that will give me more bandwidth. This was working perfectly on Windows, but I recently migrated to Debian linux (woody) since it seemed to run much smoother and less resource hungry (duh lol). But recently people were complaining of lag issues (I run two gameservers on two separate IP's), so I was looking around for a possibility but couldn't find anything. But while I was looking at something else I noticed something strange:
Both cards are receiving their respective traffic, but it's only transmitting back on eth0. Well, this kinda defeats the original purpose I had in mind :P So I've been looking around for how to get around this, and it sounds like it's the routing tables... rather, it is the routing tables. But I'm on a school network where I can't change the gateway or anything along those lines, so I am really stumped as to how I can get eth0 to transmit on eth0 and eth1 to transmit on eth1... any ideas? BTW, here's my routing table:
Code:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
129.21.112.0 * 255.255.255.128 U 0 0 0 eth0
129.21.112.0 * 255.255.255.128 U 0 0 0 eth1
129.21.112.0 * 255.255.255.128 U 0 0 0 eth2
default rit-xxx 0.0.0.0 UG 0 0 0 eth0
I don't know if that's what I want though, because I need each card to have it's own individual IP and I don't know if load balancing is what I'm looking for. I'd rather just have each card be separate and have nothing to do with each other.
Your multiNIC, bandwidth boost will work if your gamers are all connected off your switch. It will do nothing for you past your single wall jack, other than redundancy, in serial.
Now, to get the traffic to work on your other IPs. It's a configuration between the clients and the daemon. You'd have to get 1/3rd of your clients to use the first IP, the 2nd 3rd on the second IP, .... you get the picture. That manages the clients.
Then you have to ensure your daemon is configured to listen and publish on each of the ports. Typically it might mean 3 daemons. That assumes you have some engine running that those multiple daemons connect to. If your engine and socket daemons are integrated, then you will need to research how to configure that daemon to use multiNICs. In the case of Apache, for example, you can configure it either way. Meaning either multiple daemons, each with it's own config and IP. Or Multiple IPs on one daemon.
Since splitting the load is important, and if your socket daemons are separate from the gaming engine, and you have the RAM, then that would be your optimal configuration.
I have the gameserver configured to listen on the correct IP's, but the problem is that it doesn't transmit back on each individual IP, it just transmits out on eth0. Would it be possible to just uninstall route and would each NIC transmit to the gateway on it's own?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.