Results 1 to 5 of 5

Thread: Multiple NICs w/same Static IP

  1. #1
    Newbie
    Join Date
    May 2007
    Location
    Silicon Valley
    Posts
    5

    Talking Multiple NICs w/same Static IP

    Yea, I know, us crazy hardware testers. So after reading some of the forums and wiki's here I thought wow, the people around here know their stuff . I thought I'd post a question. Under linux (irregardless of which distro) I have a topology of a single nic w/static ip as a tftp server that is replicated 4 times so that means I have 4 nics all with the same static IP and the devices downstream are hardcoded with static ip's as well. I have almost completed scripting to enable/disable which 1/4 I want to talk to using ifconfig and up/down commands, but it occurs to me that it may be easier than I thought, is it possible to provide some form of reference like eth0://192.168.1.1 as opposed to using the routing tables?
    Any Ideas??
    -C

  2. #2
    Moderator
    Good Guru
    Compunuts's Avatar
    Join Date
    May 2001
    Location
    California
    Posts
    3,935
    This one seems to be for Debian and there is another solution for Red Hat. But it should be cross-platform as long as you have it multiple config sections.

    NIC bonding is not that hard as it was a while ago.

    HTH ....
    LinuxVillage - The truely community run Linux/Floss forum !

    No IT BS !!

  3. #3
    Newbie
    Join Date
    May 2007
    Location
    Silicon Valley
    Posts
    5

    Thumbs down Crazier than thought....

    NIC Bonding, aka the first step towards load-sharing or redundancy, is fairly easy this day and age, and most reptuable drivers have settings for doing that for each of their own cards. But what I was aluding to, crazy test dude I am, is I have several dozen ip devices that I need to communicate to all from one computer and, the catcher, all have fixed and identical ip addresses what I was thinking of doing is some form of NAT where the adaptor that the device I wanted to talk to was part of the NAT table or use some from of too-smart and $$$ high end router to do that.
    Thanks to any NAT / High-End router guru that can answer this challenge. In the mean time, I'm using several dozen computers.....

  4. #4
    Moderator
    Advisor
    redhead's Avatar
    Join Date
    Jun 2001
    Location
    Copenhagen, Denmark
    Posts
    811
    what I was thinking of doing is some form of NAT where the adaptor that the device I wanted to talk to was part of the NAT table or use some from of too-smart and $$$ high end router to do that.
    Let me see if I undestand this, your adaptor here, is this a protocol like SMTP/HTTP/P2P/etc ?

    If it is, then it's not that difficult to make a smart routing table with NAT/PREROUTING.

    If you're talking about the given interface, ie:
    • get a request on eth2
      • answer that request through eth2
    • get a request on eth4
      • answer that request through eth4
    • etc

    Then it's even simpler.

    If it is somethign with IP segments, ie:
    • get a request for 192.168.1.123/28
      • forward that through eth3
    • get a request for 192.168.1.131/28
      • forward that through eth2
    • etc

    Then it's a simple NAT/POSTROUTING aswell.

    The $$$ high end router can be your *nix box.
    Don't worry Ma'am. We're university students, - We know what We're doing.
    'Ruiat coelum, fiat voluntas tua.'
    Datalogi - en livsstil; Intet liv, ingen stil.

  5. #5
    Another thing that you could possibly consider is to use the MAC address of each machine, and identify them that way. Since the IP address is the same, this doesn't apply to the MAC address of each machine. Each MAC address is unique. And the best way to find the MAC address of each machine is to use "arp". I believe that the router has a built-in application in the security section, to isolate communication to another machine by identifying it's MAC address.

    Cheers!

Similar Threads

  1. setting static IP on network with no static IP address from internet provider?
    By solvetek in forum Linux - Hardware, Networking & Security
    Replies: 4
    Last Post: 11-16-2011, 07:23 AM
  2. Multiple NICs on ubuntu 8.10
    By ramon82 in forum Linux - Hardware, Networking & Security
    Replies: 3
    Last Post: 12-20-2008, 04:41 AM
  3. 3 NICs
    By elovkoff in forum Linux - General Topics
    Replies: 0
    Last Post: 03-25-2003, 08:37 PM
  4. Configuring Two Nics
    By Rastar in forum Linux - Hardware, Networking & Security
    Replies: 5
    Last Post: 03-07-2003, 05:19 PM
  5. 2 NICs
    By elovkoff in forum Linux - Hardware, Networking & Security
    Replies: 4
    Last Post: 03-03-2002, 12:39 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •