Hi,

I'm trying CARP ip balancing on openbsd 4.2 (-current). I have 3 boxes (host
A, host B and host C) so I started configuring carp interfaces according
manual:

A# ifconfig carp0 10.10.10.100 netmask 255.255.248.0 vhid 7 link0 link1
A# ifconfig carp1 10.10.10.100 netmask 255.255.248.0 vhid 8 advskew 100

B# ifconfig carp0 10.10.10.100 netmask 255.255.248.0 vhid 7 advskew 100
link0 link1
B# ifconfig carp1 10.10.10.100 netmask 255.255.248.0 vhid

At this point everything works but there is no IP load balancing, because on
host B both interfaces are in backup mode. So I've enabled carp preempt on
both hosts:

A# sysctl net.inet.carp.preempt=1
B# sysctl net.inet.carp.preempt=1

Now carp1 is master on host B, and it's doing load balancing, so i decided
to add host C (maybe we need to add this to example section in the manual,
like it's done for arp load balancing? Or is it just coincidence and you
don't really need carp preemtp?):

C# ifconfig carp0 10.10.10.100 netmask 255.255.248.0 vhid 7 advskew 200
link0 link1

As soon as I wrote this command I lost connection to host C (did that
remotely), so I guess tomorrow I'll have to check what happened, but maybe
someone knows what did I do wrong (maybe advskew should equal for all backup
hosts in the pool? but I assumed that you have to manage priorities that's
why I've set it to 200, or maybe the fact that I've set carp.preempt is
messing around something?)

Dane

Reply via email to