Oddities with VLAN/CARP Interfaces on Primary/Failover Setup
Mike Sweetser - Adhost
mikesw at adhost.com
Mon Oct 13 12:56:47 PDT 2008
We currently have a primary/failover setup for two FreeBSD 6.3 servers
running PF, and we're running into odd issues when setting up multiple
subnets on a single VLAN and CARP interface. We have issues with them
coming up properly, and even worse, having both servers believe they are
Here's a snippet of one of the VLANs and CARP interfaces in question:
ifconfig_vlan10="inet 10.142.255.252 netmask 255.255.0.0 vlan 10 vlandev
ifconfig_vlan10_alias0="inet 10.210.0.2 netmask 255.255.0.0"
ifconfig_carp10="inet 10.142.255.254 netmask 255.255.0.0 vhid 10 advskew
0 pass testpass"
ifconfig_carp10_alias0="inet 10.210.0.1 netmask 255.255.0.0"
The main difference between this and our other VLAN/CARP interfaces is
that because it's separate subnets, the aliases here are set up with /16
netmasks, while the regular aliases on the others are set up with /32s.
Is this correct, or should these also be set as /32s?
Mike Sweetser | Systems Administrator
140 Fourth Avenue North, Suite 360, Seattle, Washington 98109 USA
E mikesw at adhost.com W adhost.com
Our brand new Adhost West data center is open - contact us for a tour at
More information about the freebsd-questions