LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 02-14-2007, 09:50 AM   #1
neocontrol
Member
 
Registered: Jul 2005
Posts: 273

Rep: Reputation: 31
1 internal 1 external nic


I'm looking to setup my red hat machine to have dual network cards. One is for my static external IP and one is for my internal network attached to a gigabit switch.

Edit: I would also like to add, that the interal IP address doesn't need to go out to the internet. It should stay strictly within the internal network.

Edit some more: Currently these boxes use IPtables for firewalls.

The external card is already set, and working. I am adding the internal to this server.

What do I need to know, or what do I need to read to set this up?

Thanks,

Last edited by neocontrol; 02-14-2007 at 10:57 AM.
 
Old 02-14-2007, 10:48 AM   #2
jimbo1954
Member
 
Registered: Oct 2006
Location: High Wycombe, Bucks, UK.
Distribution: Debian and Fedora Core in equal measure
Posts: 258

Rep: Reputation: 33
Well, this is a start...

http://www.shorewall.net/two-interface.htm#id2494195

it gives you firewall function on the 2-interface box, and private (RFC1918) addresses on the internal. You can also set up DHCP on the box, so it gives additional functionality.

There is no "right" way of doing this, and there will be loads of others out there who have different ways that are just as good...this just happens to be the method I use...

HTH
Jimbo
 
Old 02-14-2007, 11:02 AM   #3
neocontrol
Member
 
Registered: Jul 2005
Posts: 273

Original Poster
Rep: Reputation: 31
Thanks for the read Jim. I also edited my original to show more of what my setup is for any others who are able to help.
 
Old 02-14-2007, 11:08 AM   #4
neocontrol
Member
 
Registered: Jul 2005
Posts: 273

Original Poster
Rep: Reputation: 31
My other idea is to just setup the IP address of the internal card. Then add a route for the internal card. What does everyone think of this way? I guess if this is a good way, how do I set the route of the internal card?
 
Old 02-14-2007, 12:53 PM   #5
neocontrol
Member
 
Registered: Jul 2005
Posts: 273

Original Poster
Rep: Reputation: 31
Well, I figured out my own problem, it seems I already has this type of problem earlier this year, and the fix was to just to add Network = 10.1.1.0 to get it to use the internal network. So thanks for letting me talk out loud. And thanks Jim.
 
  


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
2 External Nic, 1 Internal Nic Router Problem trevanda Linux - Networking 0 10-13-2004 01:20 AM
linking to an internal ip via external ip rodb Linux - Networking 1 02-03-2004 04:02 AM
Internal or External Modem noclue_menew Linux - Hardware 15 09-02-2003 05:20 PM
Modems: internal vs. external? Zen Arcade Linux - Newbie 7 06-21-2003 05:45 PM
2 NIC problem, no internal ping, only external browny_amiga Linux - Networking 3 12-02-2002 01:21 AM


All times are GMT -5. The time now is 07:09 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration