LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   1 internal 1 external nic (http://www.linuxquestions.org/questions/linux-networking-3/1-internal-1-external-nic-528993/)

neocontrol 02-14-2007 09:50 AM

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,

jimbo1954 02-14-2007 10:48 AM

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

neocontrol 02-14-2007 11:02 AM

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.

neocontrol 02-14-2007 11:08 AM

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?

neocontrol 02-14-2007 12:53 PM

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.


All times are GMT -5. The time now is 04:56 AM.