View previous topic :: View next topic |
Author |
Message |
substance Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/205814457440173882da455.gif)
Joined: 21 Jan 2004 Posts: 125
|
Posted: Tue Feb 17, 2004 11:01 pm Post subject: How to use 2 NICs on same machine |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
scout Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/12983883544208161274b34.png)
Joined: 08 Mar 2003 Posts: 1991 Location: France, Paris en Semaine / Metz le W-E
|
Posted: Tue Feb 17, 2004 11:45 pm Post subject: Re: How to use 2 NICs on same machine |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
substance Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/205814457440173882da455.gif)
Joined: 21 Jan 2004 Posts: 125
|
Posted: Wed Feb 18, 2004 12:15 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
nephros Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/145383245043ee5edfbdaa3.png)
Joined: 07 Feb 2003 Posts: 2139 Location: Graz, Austria (Europe - no kangaroos.)
|
Posted: Wed Feb 18, 2004 12:30 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
substance Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/205814457440173882da455.gif)
Joined: 21 Jan 2004 Posts: 125
|
Posted: Wed Feb 18, 2004 1:06 am Post subject: |
|
|
oh ok, well thanks guys... i'll just tkae this linsys thing out and use my onboard ![Smile :)](images/smiles/icon_smile.gif) _________________ AXP 1700+ @ 2.2GHz (220x10), Abit NF7-S 2.0, 768MB Twinmos PC3200, Radeon 9100, Gentoo :> |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|