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.

I have setup ucarp failover using this howto, and it works great.

# /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

Somewhere told me that I should not use (in this case) 10.200.0.102 for anything, as it could have influence on ucarp's ability to failover.

Would it be possible to bridge eth0, so I can get an extra IP to use for SSH, rsync and things like that without affecting ucarp?

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

try to add:

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

otherwise a more complete howto here:

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

share|improve this answer
    
Incredible. That was just what I needed =) I assume ucarp-vip and the last address should be the same? –  Sandra Oct 25 '11 at 15:27
add comment

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.