Hi,

The CARP section (6.11) in the FAQ is incorrect (old), so I'm asking for a solution here on the list.

I want to set up a similar configuration as the FAQ describes, with the IP-address being the only difference:

server a ip: 10.5.0.2
server b ip: 10.5.0.3

load balanced ip: 10.5.0.200

server a:
ifconfig carp0 create
ifconfig carp0 10.5.0.200 netmask 255.0.0.0 vhid 1 pass carptest advbase 1 advskew 0
sysctl net.inet.carp.preempt=1

ifconfig carp1 create
ifconfig carp1 10.5.0.200 netmask 255.0.0.0 vhid 2 pass carptest advbase 1 advskew 100

server b:
ifconfig carp0 create
ifconfig carp0 10.5.0.200 netmask 255.0.0.0 vhid 1 pass carptest advbase 1 advskew 100
sysctl net.inet.carp.preempt=1

ifconfig carp1 create
ifconfig carp1 10.5.0.200 netmask 255.0.0.0 vhid 2 pass carptest advbase 1 advskew 0


server a and b:
sysctl net.inet.carp.arpbalance=1

(sysctl: fourth level name arpbalance in net.inet.carp.arpbalance is invalid)

The last step is the problem with a more recent version of OpenBSD (not sure when it was changed, but it worked in 3.8 and probably some later versions), and without that last step, the load balancing part would not work (failover still works, but thats not what I am looking for).

Looking forward for a corrected FAQ section or an answer in this thread.

Regards
  PeO

Reply via email to