Hello,

I've decided to make more use of CARP, but I'm not sure that I
understand how "vhid" and "carpnodes" are supposed to work. So far, my
reading of carp(4) and ifconfig(8) is as follows:

* If I have a number of aliases bound to a certain interface, I should
  move them all to individual carp interfaces, each with their own vhid
  value, and their own password.

* On all hosts which are supposed to share one of these IP numbers, I
  configure similar carp interfaces using that same vhid value.

* The numbering of the carp interfaces is only of local significance
  on a given machine, and has no effect on other machines on the
  same network.

* If I want load balancing, then I'm going to use the "carpnodes"
  option, but now with individual vhid numbers for the same IP
  number on all affected nodes. The failover is now implicit because
  the non-working hosts simply don't advertise their MAC.

* If I want several hosts forming a number of groups on the same LAN,
  I need to assign vhid values across all hosts, and passwords
  according to group membership.

  Example: DNS on hosts dns1 and dns2, and two web servers on hosts
  web1 and web2, totalling four machines in two groups.


-- 
Kind regards,
--Toni++

Reply via email to