It is my understanding that if I enable net.inet.carp.preempt, when one carp interface on the master goes down, all carp interfaces should also go down but I am not finding this to be true. When I down either interface on the master, the other interface continues to be master. My configuration is as follows:
Master:
Backup:
This is what the ifconfig output on the master looks like after I down one of the interfaces:
And the output of sysctl:
Master:
Code:
cloned_interfaces="carp0 carp1"
ifconfig_carp0="vhid 1 pass <password> 165.196.25.108/25"
ifconfig_carp1="vhid 2 pass <password> 165.196.14.26/24"
Code:
cloned_interfaces="carp0 carp1"
ifconfig_carp0="vhid 1 advskew 100 pass <password> 165.196.25.108/25"
ifconfig_carp1="vhid 2 advskew 100 pass <password> 165.196.14.26/24"
This is what the ifconfig output on the master looks like after I down one of the interfaces:
Code:
carp0: flags=49<UP,LOOPBACK,RUNNING> metric 0 mtu 1500
inet 165.196.25.108 netmask 0xffffff80
carp: MASTER vhid 1 advbase 1 advskew 0
carp1: flags=8<LOOPBACK> metric 0 mtu 1500
inet 165.196.14.26 netmask 0xffffff00
carp: INIT vhid 2 advbase 1 advskew 0
And the output of sysctl:
Code:
sysctl -a | grep "net.inet.carp"
net.inet.carp.allow: 1
net.inet.carp.preempt: 1
net.inet.carp.log: 1
net.inet.carp.arpbalance: 0
net.inet.carp.suppress_preempt: 0