我已经使用这 howto设置了ucarp故障转移,它工作得很好。
# /etc/network/interfaces
auto eth0
iface eth0 inet static
address 10.200.0.102
netmask 255.255.255.0
ucarp-vid 3
ucarp-vip 10.200.0.200
ucarp-password ourpassword
ucarp-advskew 10
ucarp-advbase 1
ucarp-master yes
iface eth0:ucarp inet static
address 10.200.0.200
netmask 255.255.255.255某个地方告诉我,我不应该将10.200.0.102用于任何事情,因为它可能会影响ucarp的故障转移能力。
是否可以桥接eth0,这样我就可以在不影响ucarp的情况下获得用于SSH、rsync和诸如此类的额外IP了吗?
发布于 2011-10-25 14:56:25
试着添加:
auto eth0:1
iface eth0:1 inet static
address 10.200.0.103
netmask 255.255.255.0
ucarp-vid 3
ucarp-vip 10.200.0.200
ucarp-password ourpassword
ucarp-advskew 10
ucarp-advbase 1
ucarp-master yes
iface eth0:1:ucarp inet static
address 10.200.0.201
netmask 255.255.255.255否则,这里有一个更完整的方法:
http://ajohnstone.com/achives/running-several-vips-on-the-same-interface-with-ucarp-and-haproxy/
https://serverfault.com/questions/324645
复制相似问题