OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: 2 carp devices for same IP on same host (with 2 nics)

From: Tom Geman (openbsd_carhotmail.com)
Date: Mon Apr 14 2008 - 16:16:23 CDT


> pcn2 : 10.1.1.11
> pcn3 : 10.1.1.12
> # cat /etc/hostname.carp1
> inet 10.1.1.1 255.255.255.0 10.1.1.255 vhid 2 carpdev pcn2 advskew 0
> # cat /etc/hostname.carp2
> inet 10.1.1.1 255.255.255.0 10.1.1.255 vhid 2 carpdev pcn3 advskew 10

> When I start the network, carp1 gets MASTER role but carp2 is on INIT
> state and not backup.
> I've checked /etc/pf.conf and it's ok.

> Problem is that carp2 never gets MASTER when I take down pcn2...

I have never tried the setup you are proposing, but something doesn't seem
right. Shouldn't both NICs belong to the same carp1? What happens if you
try:

# cat /etc/hostname.carp1
inet 10.1.1.1 255.255.255.0 10.1.1.255 vhid 2 carpdev pcn2 advskew 0
inet 10.1.1.1 255.255.255.0 10.1.1.255 vhid 2 carpdev pcn3 advskew 10
_________________________________________________________________
Going green? See the top 12 foods to eat organic.
http://green.msn.com/galleries/photos/photos.aspx?gid=164&ocid=T003MSN51N1653
A