LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-20-2002, 07:18 PM   #1
red1526
LQ Newbie
 
Registered: Jan 2002
Location: New York City
Distribution: not known
Posts: 1

Rep: Reputation: 0
Angry two nic cards configuration for gateway


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.
 
Old 02-22-2002, 03:02 AM   #2
mircea
Member
 
Registered: Oct 2001
Location: Bucuresti - Romania
Distribution: RedHat 7.2
Posts: 42

Rep: Reputation: 15
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!
 
Old 03-06-2002, 05:44 PM   #3
kervin
Member
 
Registered: Jan 2002
Location: Melbourne, FL.
Distribution: redhat
Posts: 168

Rep: Reputation: 31
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.
 
Old 03-06-2002, 05:44 PM   #4
kervin
Member
 
Registered: Jan 2002
Location: Melbourne, FL.
Distribution: redhat
Posts: 168

Rep: Reputation: 31
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.
 
  


Reply


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
Gateway with 3 NIC czezz Linux - Networking 1 07-11-2005 04:06 AM
Ethernet cards for a Gateway Solo 1150 ? coperni Linux - Laptop and Netbook 1 03-10-2005 05:47 PM
Gateway setting for dual NIC cards? Moonman Red Hat 4 02-02-2005 02:28 AM
Two WAN cards on same gateway h8trix Linux - Networking 8 10-28-2004 11:37 PM
3 network cards and problem with gateway Oderus Slackware 4 10-19-2004 03:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:00 PM.

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