CARP question (interpretation clarification)



On FreeBSD 5.4-p8, the man page for CARP(4), has a paragraph about
net.inet.carp.preempt which reads :



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.



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.



Am I misinterpreting the documentation, or does the preempt function not
work the way I expected it to?



r2# sysctl -a | grep preempt

net.inet.carp.preempt: 1

r2# ifconfig -a

...

carp0: flags=41<UP,RUNNING> mtu 1500

inet 172.16.0.230 netmask 0xfffffc00

carp: BACKUP vhid 1 advbase 1 advskew 100

carp1: flags=41<UP,RUNNING> mtu 1500

inet 172.16.20.230 netmask 0xfffffc00

carp: BACKUP vhid 20 advbase 1 advskew 100

carp2: flags=41<UP,RUNNING> mtu 1500

inet 10.10.88.1 netmask 0xffffffe0

carp: MASTER vhid 88 advbase 1 advskew 100





Thanks!



Andrew


_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: CARP-related error on 5.4RC3
    ... Sorry to follow up on my own post, but more CARP weirdness on 5.4RC3. ... When I reboot the master, the backup quickly takes over -- just as you ... > above the carp interfaces. ...
    (freebsd-stable)
  • Re: CARP not balancing automatically
    ... I need one carp interface to be master and one backup on box A, and the opposite master/backup on box B. Or am I totally misunderstanding with the preemtp sysctl is for? ... other host: ...
    (freebsd-stable)
  • master->backup CARP issue
    ... each one has 4 CARP interfaces in preempt ... Backup without any reason preempts Master and after a while (an hour ... MASTER vhid 1 advbase 1 advskew 10 ...
    (freebsd-questions)
  • carp/vrrp/ucarp advice
    ... When the backup box is rebooted it always seems to come up ... listen for advertisementsto see if a master exists. ... the creation and destroyal of a carp interface causes a kernel panic. ... any links to a perl based gratuitous arp utils would be great ...
    (freebsd-net)
  • Re: Vrrp/CARP/ucarp Problems
    ... Using CARP is not appropriate as is noted in the (FreeBSD) man page. ... When the backup box is rebooted it always comes up advertising ... gratuitous arp as a master is sufficient to poison any traffic from the ...
    (freebsd-net)