Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Dual NICs for Dual Speed?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
hackerError
Guru
Guru


Joined: 14 Mar 2003
Posts: 342
Location: Reston, VA, USA

PostPosted: Thu Dec 11, 2003 7:15 am    Post subject: Dual NICs for Dual Speed? Reply with quote

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
View user's profile Send private message
ikaro
Advocate
Advocate


Joined: 14 Jul 2003
Posts: 2527
Location: Denmark

PostPosted: Thu Dec 11, 2003 9:00 am    Post subject: Reply with quote

what about binding and QoS ?
Ive never done that my self, but it could be a solution.
_________________
linux: #232767
Back to top
View user's profile Send private message
NewBlackDak
Guru
Guru


Joined: 02 Nov 2003
Posts: 512
Location: Utah County, UT

PostPosted: Thu Dec 11, 2003 10:08 am    Post subject: Reply with quote

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
View user's profile Send private message
fleed
l33t
l33t


Joined: 28 Aug 2002
Posts: 756
Location: London

PostPosted: Thu Dec 11, 2003 10:28 am    Post subject: Reply with quote

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
View user's profile Send private message
Jesore
Apprentice
Apprentice


Joined: 17 Jul 2002
Posts: 232
Location: Nürnberg Germany

PostPosted: Thu Dec 11, 2003 10:51 am    Post subject: Reply with quote

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
View user's profile Send private message
BigD
n00b
n00b


Joined: 10 Dec 2003
Posts: 11

PostPosted: Thu Dec 11, 2003 11:36 am    Post subject: Nice ideas... Reply with quote

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
View user's profile Send private message
kashani
Advocate
Advocate


Joined: 02 Sep 2002
Posts: 2032
Location: San Francisco

PostPosted: Thu Dec 11, 2003 7:05 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum