LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   two nic cards configuration for gateway (https://www.linuxquestions.org/questions/linux-networking-3/two-nic-cards-configuration-for-gateway-12212/)

red1526 01-20-2002 06:18 PM

two nic cards configuration for gateway
 
:newbie: i installed two nics and need to know how to configure them any ideas would be helpful. i wish to use my linux pc as a gateway to the internet using roadrunner cable modem and two netgear fa 310 nic's. i want to also use my linux pc to host a sphere or shard for uo and to be able to connect my pc's to connect to it to use the internet and shard. i have a 5 port hub and a link sys router with 4 ports which i prefer not to use if possible but if its easier i will use it. i really would appreciate any input anyone has cause i stink at linux right now. thank you for your time in reading and possibly replying to this post.

mircea 02-22-2002 02:02 AM

set one nic to use the ip and the gateway from your ISP and the other NIC to use a local IP like 192.168.1.1 .

set an iptables to MASQUERADE the local ips and that's it!

kervin 03-06-2002 04:44 PM

Actually, you don't need 2 nics on your gateway computer.

You can set the 'default gateway' of the other computers to be the IP of your firewall, the real IP. And set nat on the firewall/gateway computer.

See the howtos at http://www.netfilter.org/ for nat and http://www.linuxdoc.org/ for general networking steps.

kervin 03-06-2002 04:44 PM

Actually, you don't need 2 nics on your gateway computer.

You can set the 'default gateway' of the other computers to be the IP of your firewall, the real IP. And set nat on the firewall/gateway computer.

See the howtos at http://www.netfilter.org/ for nat and http://www.linuxdoc.org/ for general networking steps.


All times are GMT -5. The time now is 09:05 PM.