I have UCARP working but the documentation is confusing and I've found at least 3 different ways suggested in blogs (these are old and don't all seem to work). I currently have ucarp- lines added to /etc/network/interfaces under ubuntu but now I need to set it up on CentOS with multiple VIPs per interface.
In Multiple UCARP VIPs on single Interface with Debian/Ubuntu Evan Anderson says that this should be easy in CentOS. I've installed the UCARP package but there are no init scripts and it ignores my .conf files so I am wondering if this is the right way to go about it.
Can anyone describe the right way to set this up or link to a recent example that works?
I'm using the
ucarp-1.5.2-1.el5.rf
package (from the DAG repository) on CentOS 5.5. It creates a/etc/sysconfig/carp
directory into which you'd placevip-xxx.conf
(where xxx is an arbitrary integer from 1 to 255, as mandated by the/etc/init.d/carp
script) files, each containing the configuration details for that discrete ucarp instance. You'll also need to create/etc/sysconfig/network-scripts/ifcfg-ethX:Y
configuration files containing the IP address details for each virtual IP instance.There's an example configuration file in the package that can assist you in getting all of this put together.
Kinda off-topic but I can mention VRRP which I recently became aware of. I think I'll give it a try to use instead of UCARP.
Looks like you need a start script - some examples are here: http://www.admin-hints.com/2009/04/ucarp-virtual-ip-for-linux-boxes.html