Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

share|improve this question
    
The author of the debian article mentions that he should incorporate it in a comment at ajohnstone.com/archives/… , so I might have to do it on my own for now ... –  Kyle Brandt Sep 8 '10 at 17:38

3 Answers 3

up vote 1 down vote accepted

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/

share|improve this answer

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

share|improve this answer

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

share|improve this answer
    
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 9 '10 at 16:59

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.