1

The example ucarp config for a virtual IP for Debian/Ubuntu is in /usr/share/doc/ucarp/README.Debian and is as follows:

The recommended method for configuring ucarp is via 
/etc/network/interfaces. For example:

iface eth0 inet static
        address 10.0.0.2
        netmask 255.255.255.0
        ucarp-vid 3
        ucarp-vip 10.0.0.1
        ucarp-password 16charsatmost
        ucarp-advskew 0
        ucarp-advbase 1
        ucarp-master yes
iface eth0:ucarp inet static
        address 10.0.0.1
        netmask 255.255.255.255

In the document it isn't clear how or if it is possible to configure multiple VIPs on a single interface with this configuration method. Does anyone know if this is possible?

Kyle Brandt
  • 82,107
  • 71
  • 302
  • 444
  • The author of the debian article mentions that he should incorporate it in a comment at http://www.ajohnstone.com/archives/running-several-vips-on-the-same-interface-with-ucarp-and-haproxy/ , so I might have to do it on my own for now ... – Kyle Brandt Sep 08 '10 at 17:38

3 Answers3

2

You can do any/all of that stuff with debian's interfaces file by using up/down commands.

http://xn.pinkhamster.net/blog/tech/mail/high-availability_smtp_with_ucarp_on_debian.html

1

For CARP in OpenBSD (where this is ported from, for Linux) I know you would generally configure multiple CARP interfaces, as needed. I haven't tried multiple vIP's on a single interface though, as I haven't had such a need.

However UCARP works in Linux for configuring CARP interfaces (assuming it still uses CARP interfaces in Linux) then couldn't you just create another interface or use it on an eth: alias if not?

Just a thought, but from what I see so far, UCARP appears to be limited in comparison to native CARP in OpenBSD. Why not switch and get a plethora of more goodies? =)

  • It's just an issue with the Debian "contrivance" for the configuration of interfaces. UCARP can handle running multiple VIPs on one interface just fine, but Debian's configuration files don't have the "fidelity" to configure it. (I'm more of a CentOS guy, where configuring multiple VIPs on the same interface is a piece of cake... >smile<) – Evan Anderson Sep 09 '10 at 16:59
1

Yes this is possible, we are currently using this for a number of production sites.

http://ajohnstone.com/achives/running-several-vips-on-the-same-interface-with-ucarp-and-haproxy/