View previous topic :: View next topic |
Author |
Message |
hackerError Guru


Joined: 14 Mar 2003 Posts: 342 Location: Reston, VA, USA
|
Posted: Thu Dec 11, 2003 7:15 am Post subject: Dual NICs for Dual Speed? |
|
|
Hello
Our school limits our internet connections to 128k up and down
I have two NICs on my motherboard.
My roommate has gone home for winter break, and I have set up eth1 to use his IP address.
My Question is how can I (if I can at all) make it so that when a program wants to access the internet it auto selects the best nic to go through.
At the moment all programs seem to be ignoring eth1 and eth0 has all of its bandwidth sucked up by bittorrent. I want to play Warcraft or browse the internet using eth1 but I cannot since its using eth0 and bittorrent is a hog _________________ Before you insult someone, it is often best to walk a mile in their shoes.
That way when you insult them you're already a mile away and have their shoes. |
|
Back to top |
|
 |
ikaro Advocate


Joined: 14 Jul 2003 Posts: 2527 Location: Denmark
|
Posted: Thu Dec 11, 2003 9:00 am Post subject: |
|
|
what about binding and QoS ?
Ive never done that my self, but it could be a solution. _________________ linux: #232767 |
|
Back to top |
|
 |
NewBlackDak Guru


Joined: 02 Nov 2003 Posts: 512 Location: Utah County, UT
|
Posted: Thu Dec 11, 2003 10:08 am Post subject: |
|
|
This is called bonding in Linux, and it takes a very expensive switch to be able to take advantage of this. I highly doubt the switch you're on has this capability. Just do some searches in this forum or google for bonding. _________________ Gentoo systems.
X2 4200+@2.6 - Athy
X2 3600+ - Myth
UltraSparc5 440 - sparcy |
|
Back to top |
|
 |
fleed l33t


Joined: 28 Aug 2002 Posts: 756 Location: London
|
Posted: Thu Dec 11, 2003 10:28 am Post subject: |
|
|
I'm pretty sure a switch wouldn't make a difference in his case since the bottleneck is not at his local LAN but at the point he accesses the net.
What you could do if you want to get better performance for a single internet host is to add an entry to your routing table specifying which interface to use for the warcraft server. It gets a bit complicated if you want to have a more generic solution though. Maybe you could use iptables to specify that the bittorrent connections go through a specific iface and all the rest through the other? |
|
Back to top |
|
 |
Jesore Apprentice


Joined: 17 Jul 2002 Posts: 232 Location: Nürnberg Germany
|
Posted: Thu Dec 11, 2003 10:51 am Post subject: |
|
|
A simple route command should do. You can tell which adresses should use which interface. So at least the warcraft server (fixed ip adress) should be accessible via eth1. With bittorrent and webbrowsing (lots of adresses) it is nearly impossibe as you'd have to modify the routing table for each site or bittorrent server. There you need the default gateway, which is for every other connection not specified in the routing table.
Jesore |
|
Back to top |
|
 |
BigD n00b

Joined: 10 Dec 2003 Posts: 11
|
Posted: Thu Dec 11, 2003 11:36 am Post subject: Nice ideas... |
|
|
Unfortunately unless BOTH your routers support the Border Gateway Protocol and share data between themselves then I'm afraid you can't. This is what the BGP protocol was created for
BigD |
|
Back to top |
|
 |
kashani Advocate


Joined: 02 Sep 2002 Posts: 2032 Location: San Francisco
|
Posted: Thu Dec 11, 2003 7:05 pm Post subject: |
|
|
NewBlackDak wrote: | This is called bonding in Linux, and it takes a very expensive switch to be able to take advantage of this. I highly doubt the switch you're on has this capability. Just do some searches in this forum or google for bonding. |
The problem is that you'd have to configure the switch to support ether-channel while you set your Linux server to bond the NIC's as well. Needless to say you're probably not allowed to access the Cisco switches to make this change.
Best solution is to set up rotating gateways. man route should give you some ideas, but the following would probably work.
route add default gw <ip> eth0
route add default gw <ip> eth1
kashani _________________ Will personally fix your server in exchange for motorcycle related shop tools in good shape. |
|
Back to top |
|
 |
|