LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   2 NICs (https://www.linuxquestions.org/questions/linux-networking-3/2-nics-22184/)

d-rez 05-30-2002 01:57 PM

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?

sewer_monkey 05-31-2002 10:15 AM

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"?

Noerr 05-31-2002 03:29 PM

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

vimal 06-13-2006 02:08 PM

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 netfilter.org page.

Contact in case of need...

Thanks....


All times are GMT -5. The time now is 01:17 AM.