Debian / Ubuntu单个界面上的多个UCARP VIP

Debian / Ubuntu虚拟IP的ucarpconfiguration示例位于/usr/share/doc/ucarp/README.Debian中,如下所示:

 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 

在文档中,不清楚如何或是否可以使用此configuration方法在单个接口上configuration多个VIP。 有谁知道这是可能的吗?

是的,这是可能的,我们目前正在使用这个为一些生产网站。

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

你可以使用up / down命令来执行debian的interfaces文件。

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

对于OpenBSD中的CARP(从Linux移植而来),我知道你通常会根据需要configuration多个CARP接口。 虽然我还没有在单个界面上尝试多个vIP,因为我没有这样的需求。

然而,UCARP在Linux中用于configurationCARP接口(假设它仍然在Linux中使用CARP接口),那么你不能只是创build另一个接口或在eth上使用它:别名,如果不是的话?

只是一个想法,但从我目前看到的情况来看,与OpenBSD中的本地CARP相比,UCARP似乎有限。 为什么不切换,并获得更多的好东西? =)