Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
02-14-2007, 10:50 AM
|
#1
|
Member
Registered: Jul 2005
Posts: 273
Rep:
|
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 11:57 AM.
|
|
|
02-14-2007, 11:48 AM
|
#2
|
Member
Registered: Oct 2006
Location: High Wycombe, Bucks, UK.
Distribution: Debian and Fedora Core in equal measure
Posts: 264
Rep:
|
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
|
|
|
02-14-2007, 12:02 PM
|
#3
|
Member
Registered: Jul 2005
Posts: 273
Original Poster
Rep:
|
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.
|
|
|
02-14-2007, 12:08 PM
|
#4
|
Member
Registered: Jul 2005
Posts: 273
Original Poster
Rep:
|
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?
|
|
|
02-14-2007, 01:53 PM
|
#5
|
Member
Registered: Jul 2005
Posts: 273
Original Poster
Rep:
|
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 05:11 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|