setting up a shared ip address for two linux boxes

Discussion in 'Server Operation' started by mechamecha, May 17, 2008.

  1. mechamecha

    mechamecha New Member

    hello,
    i've been reading the "how to" tutorial on "Setting Up A High-Availability Load Balancer" and one of the requirements is to have a shared ip address for two static ip addresses. How do i setup a shared ip address?

    My current setup is off of my home lan for testing and experimentation. I have two fedora 6 boxes each w/ a static ip addresse 192.168.1.200 and 192.168.1.210. I have a router w/ dd-wrt firmware installed on it so I have the ability to reroute all inbound connects to a specific ip address. I assume this ip address is my "shared ip" and I need to somhow assign my two fedora 6 boxes this "shared ip" address. How do i do this?

    Thanks!
     
  2. falko

    falko Super Moderator Howtoforge Staff

    You need a subnet (no matter if private or public) from which you can use the IP addresses as you like. From this subnet you pick one IP address as the shared IP address. So you could use 192.168.1.205 as the shared IP address and forward all traffic from the router to that IP address.
     
  3. mechamecha

    mechamecha New Member

    falko, thanks for the response.

    Would you mind going into more details as to what files need to be modified in order to get a subnet going?

    I understand what subnets are. Subnets allow you to split your network into smaller groups using subnet masks. On my lan, I have the subnet mask 255.255.255.0 so that all ip addresses in the format 192.168.1.xxx are local to my network. How do I take this one step further and create a shared ip addresses for two of my linux boxes?

    thanks!
     
  4. falko

    falko Super Moderator Howtoforge Staff

    You just pick an unused IP address of your subnet as the virtual IP address, and then you follow the tutorial. That's all.
     

Share This Page