Hi Eric, As requested I have tested various configurations and enclose my findings below.
------------------------------------------------------------------------------------------ Ucarp running on a vlan under Debian Wheezy. Example configuration for /etc/network/interfaces ------------------------------------------------------------------------------------------ #Test Ucarp on a vlan iface eth0.3076 inet static address 192.168.254.181 netmask 255.255.255.0 broadcast 192.168.254.254 network 192.168.254.0 gateway 192.168.254.1 ucarp-vid 180 ucarp-vip 192.168.254.180 ucarp-password password ucarp-advskew 0 ucarp-advbase 1 ucarp-master yes iface eth0.3076:ucarp inet static address 192.168.254.180 netmask 255.255.255.0 You can manually bring up the ucarp interface typing:- ifup eth0.3076:ucarp If you however rename the eth0 interface (using udev) to something like wan-2 and use then following config for /etc/network/interfaces. #Test ucarp on a vlan with a renamed interface. iface wan-2.3076 inet static address 192.168.254.181 netmask 255.255.255.0 broadcast 192.168.254.254 network 192.168.254.0 gateway 192.168.254.1 ucarp-vid 180 ucarp-vip 192.168.254.180 ucarp-password password ucarp-advskew 0 ucarp-advbase 1 ucarp-master yes iface wan-2.3076:ucarp inet static address 192.168.254.180 netmask 255.255.255.0 When you try to manually bring up the ucarp interface typing:- ifup wan-2.3076:ucarp You get the following error:- RTNETLINK answers: Numerical result out of range Failed to bring up wan-2.3076:ucarp. This problem seems to be caused by the new version of ifupdown 0.7.8 in Wheezy. If you go back to the previous version available for Squeeze :- ifupdown 0.6.10 you can bring up the interface. As requested I attempted to bring up the interface using /sbin/ip Here is my example syntax below, notice I did not include the /24 (as per the example) after the IP address as the subnet mask might differ per ucarp interface. /sbin/ip addr add 192.168.254.180 dev wan-2.3076:ucarp 192.168.254.180 pings but does display when running ifconfig. I modified the /usr/share/ucarp/vip-up script like so- #! /bin/sh exec 2> /dev/null /sbin/ip addr add "$2" dev "$1:ucarp" No matter what I do the ucarp interface will not come up automatically on a vlan interface. If I run "tcpdump -i wan-2.3076 vrrp" I can see no vrrp announcements. Therefore it appears ucarp is not running on a vlan interface, something which it did previously. On the new Debian Wheezy release there is no need to install the package vlan. Is there any dependency for this in ucarp? I can't see it in the package dependency and assume this is due to the problem found with ifupdown. If you want to run this test on Debian Squeeze, you will need to install vconfig "apt-get install vlan" and change your network interfaces file like so:- #Test Ucarp on a vlan in Debian Squeeze using a renamed interface. iface wan-2.3076 inet static address 192.168.254.181 netmask 255.255.255.0 broadcast 192.168.254.254 network 192.168.254.0 gateway 192.168.254.1 ucarp-vid 180 ucarp-vip 192.168.254.180 ucarp-password password pre-up vconfig add wan-2 3076 post-down vconfig rem wan-2.3076 ucarp-advskew 0 ucarp-advbase 1 ucarp-master yes iface wan-2.3076:ucarp inet static address 192.168.254.180 netmask 255.255.255.0 How do I debug ucarp to see why it is not automatically bringing up the ucarp interface? There is nothing detailed in syslog or messages. Best Regards, Trevor