Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 05-30-2002, 02:57 PM   #1
LQ Newbie
Registered: May 2002
Distribution: RH 7.2
Posts: 18

Rep: Reputation: 0
2 NICs

I have built a squid proxy everythings working great!

I just bought another NIC and want to load it onto my server
How do I set the NIC to pass my traffic to the second NIC and go out?
Old 05-31-2002, 11:15 AM   #2
Registered: May 2002
Location: Toronto, ON, Canada
Distribution: Ubuntu, Debian, RedHat/CentOS
Posts: 624

Rep: Reputation: 31
If you want to hook up two NICs to the same network, you can either assign separate IP addresses to each NIC (that way your machine will have two IPs), or you can assign the second NIC as a "slave" to the first NIC. That way both of the NICs will have the same IP address, doubling the bandwidth...

I am not quite sure with that second option, however, I read about it in The Linux Journal. Anyone here have any experience with "master/slave NICs"?
Old 05-31-2002, 04:29 PM   #3
Registered: May 2002
Location: Dalec, HU
Distribution: Redhat 7.3
Posts: 696

Rep: Reputation: 30
you can use special bonding driver to have load sharing, but I don't think you have such needs. It mostly make sense to use 2 NIC to connect your computer to 2 networks ie local + internet
or office1 + office2
Old 06-13-2006, 03:08 PM   #4
Red Hat India
Registered: Nov 2004
Location: Kerala/Pune,india
Distribution: RedHat, Fedora
Posts: 260

Rep: Reputation: 34
Hello d-rez,

I think you need the 'redirect' feature. Am i right? After configuring the second NIC, you need to use the 'redirect' option via.. iptables. By using the redirect directive, you are able to redirect the data coming on a particular interface to another one. For this, you must use the DNAT or Destination NAT. Redirection is a feature of DNAT. You can get the docs: on the page.

Contact in case of need...



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
2 NICs, 1 IP? lil_drummaboy Linux - Hardware 1 07-10-2005 12:56 AM
Intel D845GLLY + Multiple Intel Pro 100 NICs + kernel 2.6.x = NICs don't work egable Linux - Hardware 0 02-04-2005 03:30 PM
Two nics, but only one can be used at once, why? geraldomanaus Linux - Networking 1 02-17-2004 10:45 PM
more than 2 nics sauli Linux - Software 1 02-11-2002 08:45 AM
2 NICs BinaryGrey Linux - Networking 8 08-13-2001 01:45 AM

All times are GMT -5. The time now is 05:48 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration