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

    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 and 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?

  2. falko

    falko Super Moderator ISPConfig Developer

    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 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 so that all ip addresses in the format 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?

  4. falko

    falko Super Moderator ISPConfig Developer

    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