Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to use 2 NICs on same machine
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
substance
Tux's lil' helper
Tux's lil' helper


Joined: 21 Jan 2004
Posts: 125

PostPosted: Tue Feb 17, 2004 11:01 pm    Post subject: How to use 2 NICs on same machine Reply with quote

Hey guys

I have 2 NICs working... the nforce nic set as eth1 and a linksys nic set at eth0.

I have both set in /etc/conf.d/net with seperate IPs and the same gateway. They both start and all my stuff works. But how do i tell whats using what and how do i tell linux to have it use... lets say this nic for this and this other nic for that? Im confused? ;/
_________________
AXP 1700+ @ 2.2GHz (220x10), Abit NF7-S 2.0, 768MB Twinmos PC3200, Radeon 9100, Gentoo :>
Back to top
View user's profile Send private message
scout
Veteran
Veteran


Joined: 08 Mar 2003
Posts: 1991
Location: France, Paris en Semaine / Metz le W-E

PostPosted: Tue Feb 17, 2004 11:45 pm    Post subject: Re: How to use 2 NICs on same machine Reply with quote

substance wrote:
I have both set in /etc/conf.d/net with seperate IPs and the same gateway.

That's a strange setup.....
You can use the route command to tune the routes more finely that with /etc/conf.d/net
If you want a separation based on ports, I think you have to use iptables: tell all the packets that come to eth0 and that are not for port blah blah to go to eth1 (hey, don't also configure it so that all the packets that come to eth1 and that are not for port blah blah to go to eth0, otherwise some packets could be in a loop between eth0 and eth1 internally)
_________________
http://petition.eurolinux.org/ - Petition against ePatents
L'essence de la finesse
Back to top
View user's profile Send private message
substance
Tux's lil' helper
Tux's lil' helper


Joined: 21 Jan 2004
Posts: 125

PostPosted: Wed Feb 18, 2004 12:15 am    Post subject: Reply with quote

yeah but i thought a lot of people use multiple NICs...
_________________
AXP 1700+ @ 2.2GHz (220x10), Abit NF7-S 2.0, 768MB Twinmos PC3200, Radeon 9100, Gentoo :>
Back to top
View user's profile Send private message
nephros
Advocate
Advocate


Joined: 07 Feb 2003
Posts: 2139
Location: Graz, Austria (Europe - no kangaroos.)

PostPosted: Wed Feb 18, 2004 12:30 am    Post subject: Reply with quote

Yes, but like this:
Code:
{internet}----[Cable Modem]----[(eth0) linux box (eth1)]---[hub]---[Mums PC]

_________________
Please put [SOLVED] in your topic if you are a moron.
Back to top
View user's profile Send private message
substance
Tux's lil' helper
Tux's lil' helper


Joined: 21 Jan 2004
Posts: 125

PostPosted: Wed Feb 18, 2004 1:06 am    Post subject: Reply with quote

oh ok, well thanks guys... i'll just tkae this linsys thing out and use my onboard :)
_________________
AXP 1700+ @ 2.2GHz (220x10), Abit NF7-S 2.0, 768MB Twinmos PC3200, Radeon 9100, Gentoo :>
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