I have SSH installed, and UCARP configured to fail over a virtual IP when one of the two boxes goes down. The problem that I'm having is when a VM is running, and the ucarp interface is active (eth0:ucarp), I cannnot ssh to the VM using the eth0 address; I can only get to it using the eth0:ucarp address.
I used this guide to set up UCARP: http://laurentbel.com/2012/04/04/simple-failover-cluster-on-ubuntu-using-carp/
Is there a way to configure ssh to only run on eth0, or make eth0 the 'primary' interface for ssh? Right now, if I try to ssh to the eth0 address, there is no response (the connection times out).
Here is my /etc/networking/interfaces file:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
###
# standard config
###
address 192.168.1.7
netmask 255.255.255.0
gateway 192.168.1.1
network 192.168.1.0
broadcast 192.168.1.255
###
# ucarp config
###
# vid: the ID of the virtual server [1-255]
ucarp-vid 1
# vip: the virtual IP
ucarp-vip 192.168.1.3
# password
ucarp-password info322
# advskew: Advertisement skew [1-255]
ucarp-advskew 1
# advbase: Interval in seconds that advertisements will occur
ucarp-advbase 1
# master: determine if this server is the master
ucarp-master yes
# The carp network interface, on top of eth1
iface eth0:ucarp inet static
address 192.168.1.3
netmask 255.255.255.0