carp0 interface goes down on 6.2-PRERELEASE

Marko Lerota mlerota at iskon.hr
Thu Oct 12 17:20:18 UTC 2006


Ari Suutari <ari at suutari.iki.fi> writes:

> carp0: flags=49<UP,LOOPBACK,RUNNING> mtu 1500
>         inet 192.168.5.59 netmask 0xffffff00
>         carp: BACKUP vhid 55 advbase 1 advskew 0
> + sleep 5
> + ifconfig carp0
> carp0: flags=8<LOOPBACK> mtu 1500
>         carp: INIT vhid 55 advbase 1 advskew 0
>
> See, here the interface is up, but after 5 seconds it has gone
> down. Could anybody give a hint why this happens ? There are
> messages on console about promiscuous mode being enabled/disabled,
> but nothing else.

I think the interface didn't get sync from other carp interface,
so it doesn't know that he is the MASTER or BACKUP, and because 
of that goes into the INIT state. 

Setup at least 2 interfaces like in this example and try it out.

Example

So on cluster1 put this in rc.conf

######## NETWORK ###############################################
defaultrouter="10.0.0.1"
hostname="cluster1.somehost.net"
ifconfig_bge0="inet 10.0.0.101  netmask 255.255.255.0"
ifconfig_bge1="inet 192.168.0.1 netmask 255.255.255.0"

cloned_interfaces="carp0"   
network_interfaces="carp0 pfsync0 bge0 bge1 lo0"  
ifconfig_carp0="vhid 1 pass ugly_password 10.0.0.103/24"  
ifconfig_pfsync0="up syncif bge1"  
pfsync_enable="YES"
pfsync_syncdev="bge1"
################################################################

on cluster2 put this in rc.conf 

######## NETWORK ###############################################
defaultrouter="10.0.0.1"
hostname="cluster2.somehost.net"
ifconfig_bge0="inet 10.0.0.102  netmask 255.255.255.0"
ifconfig_bge1="inet 192.168.0.2 netmask 255.255.255.0"

cloned_interfaces="carp0"  
network_interfaces="carp0 pfsync0 bge0 bge1 lo0" 
ifconfig_carp0="vhid 1 pass ugly_password advskew 100 10.0.0.103/24" 
ifconfig_pfsync0="up syncif bge1" 
pfsync_enable="YES"
pfsync_syncdev="bge1"
################################################################

-- 
One cannot sell the earth upon which the people walk
                               			Tacunka Witco 


More information about the freebsd-stable mailing list