Date: Wed, 15 Feb 2006 22:19:31 -0500 From: "Webster, Andrew" <awebster@connectalk.com> To: <freebsd-questions@freebsd.org> Subject: CARP question (interpretation clarification) Message-ID: <9D61D69E3C1F7F459C5513AD830EE2192BC2C2@mtlex01.connectalk.com>
next in thread | raw e-mail | index | archive | help
On FreeBSD 5.4-p8, the man page for CARP(4), has a paragraph about net.inet.carp.preempt which reads : =20 net.inet.carp.preempt Allow virtual hosts to preempt each other. It is also used to failover carp interfaces as a group. When the option is enabled and one of the carp enabled physical interfaces goes down, advskew is changed to 240 on all carp inter- faces. See also the first example. Disabled by default. =20 If I understand this correctly, a system having multiple carp interfaces would either see all carp interfaces as all MASTER or all BACKUP, but not a combination of both? On my system, I've got preempt turned on, but as shown below on my "backup" machine, two carp interfaces are in BACKUP config, and one is MASTER. On the "master" machine of this pair, I have the reverse, two MASTER, and one BACKUP corresponding to the appropriate subnets. =20 Am I misinterpreting the documentation, or does the preempt function not work the way I expected it to?=20 =20 r2# sysctl -a | grep preempt net.inet.carp.preempt: 1 r2# ifconfig -a =2E.. carp0: flags=3D41<UP,RUNNING> mtu 1500 inet 172.16.0.230 netmask 0xfffffc00=20 carp: BACKUP vhid 1 advbase 1 advskew 100 carp1: flags=3D41<UP,RUNNING> mtu 1500 inet 172.16.20.230 netmask 0xfffffc00=20 carp: BACKUP vhid 20 advbase 1 advskew 100 carp2: flags=3D41<UP,RUNNING> mtu 1500 inet 10.10.88.1 netmask 0xffffffe0=20 carp: MASTER vhid 88 advbase 1 advskew 100 =20 =20 Thanks! =20 Andrew=20 =20
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9D61D69E3C1F7F459C5513AD830EE2192BC2C2>