Debian/Ubuntu虚拟IP的ucarp配置示例在/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在文档中,不清楚如何或是否可以使用此配置方法在单个接口上配置多个VIP。有人知道这是否可能吗?
发布于 2011-03-06 00:15:44
是的,这是可能的,我们目前正在使用这一些生产现场。
http://ajohnstone.com/achives/running-several-vips-on-the-same-interface-with-ucarp-and-haproxy/
发布于 2011-03-02 17:40:56
您可以通过使用up/ do命令对debian的接口文件执行任何/所有这些操作。
http://xn.pinkhamster.net/blog/tech/mail/high-availability_smtp_使用_乌卡普_在……上面_debian.html
发布于 2010-09-09 04:15:46
对于OpenBSD中的CARP (这是从Linux移植的),我知道您通常会根据需要配置多个CARP接口。不过,我还没有在一个接口上尝试过多个vIP,因为我还没有这样的需求。
但是,UCARP在Linux中用于配置CARP接口(假设它在Linux中仍然使用CARP接口),那么您就不能创建另一个接口或者在eth:别名上使用它吗?
这只是一个想法,但据我所见,UCARP与OpenBSD中的本地鲤鱼相比似乎是有限的。为什么不切换一下,得到更多的好处呢?
https://serverfault.com/questions/179263
复制相似问题