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