Date: Thu, 12 Oct 2006 19:20:10 +0200 From: Marko Lerota <mlerota@iskon.hr> To: Ari Suutari <ari@suutari.iki.fi> Cc: freebsd-stable@freebsd.org Subject: Re: carp0 interface goes down on 6.2-PRERELEASE Message-ID: <86hcy9zc1h.fsf@sparrow.local> In-Reply-To: <452E2151.80500@suutari.iki.fi> (Ari Suutari's message of "Thu, 12 Oct 2006 14:04:49 %2B0300") References: <452E2151.80500@suutari.iki.fi>
next in thread | previous in thread | raw e-mail | index | archive | help
Ari Suutari <ari@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86hcy9zc1h.fsf>