This tutorial by user weirdbricks shows us how to get CARP set up on FreeBSD 10.
Some quick notes on setting up CARP on FreeBSD.
Most of this is based on the FreeBSD Handbook page
1. Add the carp kernel module – edit the file /boot/loader.conf and add the linecarp_load="YES"
^ Make sure that this is done on all hosts
To load the module without rebooting:kldload carp
2. Then on the host you want to act as the master edit the /etc/rc.conf and add:hostname="freebsd10-master" ifconfig_em0="inet 192.168.2.21 netmask 255.255.255.0" ifconfig_em0_alias0="inet 192.168.2.50/32 vhid 100 advskew 100 pass lampros" defaultrouter="192.168.2.1"
In the above the 192.168.2.50 is going to be the “floating IP” address.
3. On the host you want to act as a backup: