Subject: Re: CARP Patch
To: Liam J. Foy <liamfoy@sepulcrum.org>
From: Marcin Jessa <lists@yazzy.org>
List: tech-net
Date: 03/01/2006 13:42:46
On Wed, 1 Mar 2006 13:19:34 +0100
Marcin Jessa <lists@yazzy.org> wrote:

> On Wed, 1 Mar 2006 09:47:28 +0000
> "Liam J. Foy" <liamfoy@sepulcrum.org> wrote:
> 
> [...]
> > Here is a quick example to get CARP working once the patch has been
> > applied and compiled:
> > 
> > 	(Add 'pseudo-device carp' to kernel and re-build)
> 
> Adding pseudo-device carp to my kernel config gives me:
> 
> ===> Building kernel:  CUSTOM
> ===> Build directory:  /usr/obj/sys/arch/i386/compile/CUSTOM
> rm -f a.out [Ee]rrs mklog core *.core .gdbinit
> /usr/src/sys/arch/i386/conf/CUSTOM:1266: `carp' already defined
> *** Stop.
> 
> One more kernel config, this time for XEN0:
> /usr/src/sys/arch/i386/conf/CUSTOM_XEN0:680: `carp' already defined
> *** Stop.
> 
> Another one for XENU
> /usr/src/sys/arch/i386/conf/CUSTOM_XENU:239: `carp' already defined
> *** Stop.

I compiled kernels without pseudo-device carp and so far it seems like
carp works. I could create carp interfaces:
ifconfig carp0 create
# ifconfig carp0
carp0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
        address: 00:00:5e:00:01:ff

But configuring it gives an error:
# ifconfig carp0 vhid 1 pass testpass carpdev xennet0 12.23.34.45/24
ifconfig: vhid: bad value

> 
> Tried that with two kernels with today's sources.
3 kernels of course. 
Tried one aditional box with the same result compiling my kernel.

Cheers,
Marcin