Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > Linux Networking > Configure 2 NICs - ext. static IPs on same network
 Linux Networking   Hardware/Software related, Modems, Internet connection sharing, IPTables etc.

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 08-26-2007   #1 (permalink)
Just Joined!
 
Join Date: Aug 2007
Posts: 2
Configure 2 NICs - ext. static IPs on same network

Hi Folks,

I've search the forums and the general internet for an answer to this perplexing problem I'm experiencing and can't seem to find a scenario that is similar to mine. Here is my setup and problem:

Linux (FC7) server has 2 NICs, both of which are on the same subnet and have static IPs. Below is an example of what my setup would look like:

eth0: IP=71.245.97.81 SUBNETMASK=255.255.255.0 GW=71.245.97.1
eth1: IP=71.245.97.82 SUBNETMASK=255.255.255.0 GW=71.245.97.1

Trying to accomplish:
I'm trying to configure the linux routing table so that incoming BIND queries on eth1, port 53, go out eth1 (the same way they came in). Additionally, I want incoming BIND queries on eth0, port 53, to go out eth0 (the same way they came in). In essence, I have ns1.myserver.com pointed to eth0 and ns2.myserver.com pointed to eth1.

Herein lies the problem -- When I add a default gateway, it has to be one OR the other, but that doesn't work for my setup. When searching the forums and internet, I find lots of solutions if you happen to have two different networks setup on two different NICs. I do not -- both are on the same network.

Keep in mind that I have Netfilter already configured to process and route/forward packets where they need to go. The big problem I have is routing responses out of both eth1 and eth0 (depending on how they come in, of course).

Thanks a bunch!!

--myrion
Myrion is offline  

Reply With Quote
Old 08-26-2007   #2 (permalink)
Linux Guru
 
anomie's Avatar
 
Join Date: Mar 2005
Location: Texas
Posts: 1,697
In the past I've assigned an IP and an alias on the same network to the same ethernet device.

e.g.
eth0 192.168.1.50
eth0:0 192.168.1.51

But never tried two different ethernet devices on the same network. Is the purpose of what you're doing to try to partition traffic..?
anomie is offline   Reply With Quote
Old 08-26-2007   #3 (permalink)
Just Joined!
 
Join Date: Aug 2007
Posts: 2
Sort of, yes :)

Quote:
Originally Posted by anomie View Post
In the past I've assigned an IP and an alias on the same network to the same ethernet device.

e.g.
eth0 192.168.1.50
eth0:0 192.168.1.51

But never tried two different ethernet devices on the same network. Is the purpose of what you're doing to try to partition traffic..?
So basically yes. There are two individual NICs within this system. Each one has a static IP assigned from my ISP (btw -- I have a 5-block of IPs). And yes, I'm definitely trying to partition traffic. Specifically, I'm running a name server (BIND) and I'm having both IPs assigned to the individual NICs represent ns1.myserver.com and ns2.myserver.com. That way there is some redundancy with respect to my DNS queries. And yes, I know, it doesn't *really* count because both IPs like to the same system. But that's a whole different thread.

--myrion
Myrion is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to configure Network printer deelip_prusty Redhat / Fedora Linux Help 0 03-19-2007 06:28 AM
How do i configure my network connection anindya SuSE Linux Help 3 06-01-2006 05:46 PM
how to configure windows 2000 network printer to linux kumaran.d Linux Networking 1 05-24-2006 10:42 PM
how to configure network... the redhat way adam7979 Redhat / Fedora Linux Help 1 06-24-2005 07:16 AM
Mixing static and dynamic ip network interfaces bobwall Linux Networking 0 07-14-2004 04:30 PM

Free Magazines
Free Network Mapping Tool for Microsoft® Office Visio® Professional 2007 Users
Don't map your network by hand – let LANsurveyor Express for Microsoft Visio Professional 2007 automatically create network diagrams for you.
subscribe
Free eBook:"Vulnerability Management for Dummies"
Get all the Facts and See How to Implement a Successful Vulnerability Management Program.
subscribe
Google vs The World: The Battle of the Message Security Vendors
With such a powerful name behind it, Google Message Security stands out in a sea of products that do exactly the same thing - or so they say.
subscribe

Safe, Secure Backup


All times are GMT. The time now is 12:57 AM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2