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
  • 85,693

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? =)

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/