From owner-freebsd-stable@FreeBSD.ORG Thu Oct 12 17:20:18 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DAEAD16A4E9 for ; Thu, 12 Oct 2006 17:20:17 +0000 (UTC) (envelope-from marko.lerota@claresco.hr) Received: from mxout2.iskon.hr (mxout2.iskon.hr [213.191.128.81]) by mx1.FreeBSD.org (Postfix) with SMTP id B257B43D79 for ; Thu, 12 Oct 2006 17:20:14 +0000 (GMT) (envelope-from marko.lerota@claresco.hr) Received: (qmail 29762 invoked from network); 12 Oct 2006 19:20:12 +0200 X-Remote-IP: 213.191.142.123 Received: from unknown (HELO mx.iskon.hr) (213.191.142.123) by mxout2.iskon.hr with SMTP; 12 Oct 2006 19:20:12 +0200 Received: (qmail 582 invoked from network); 12 Oct 2006 19:20:12 +0200 X-Remote-IP: 213.202.84.199 Received: from lns01-0198.dsl.iskon.hr (HELO sparrow.local) (213.202.84.199) by mx.iskon.hr with SMTP; 12 Oct 2006 19:20:12 +0200 Received: (qmail 1156 invoked by uid 1001); 12 Oct 2006 17:20:10 -0000 To: Ari Suutari Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAJFBMVEWgnbRLVpRNVY9jMRPh s21jSlEyNVX45Mv4zI+sbUclFAtMVpT8V0lFAAACZ0lEQVR4nG3Tv2vbQBQHcFMogWyeNeVK BLXGl5j6xnABOaNTuXFGmWpwtw519yj4soW6AatT4GKD3+aDZrl/rt/Tr9qlGiz7Pn7v3bsf HVc/NrIiSfElqH53GgijcCqzk/+AmBF5cN0DsFlIRGMh/oHuqxkTM6VlzB4EoZEs2aSZOASb EQJYZpweQshE697GTDndBXtgp9LIT9+OpDGHEfb9knk+nx+jfN1JCVZMCl6XwFm0a2EXztZD 3s4fj47ZbKI2VeBmJImeEfGLJ+M9sDPilX7IB5rN6sdfcGhuoHU+LC4nxfnI7YOJtdb95Gb+ fbgJ2uJ2ZgaA++f5ZzBqNCCYfMTd5q0BfBVNqm7I8gUjQ+YtXotRW6PH9AEj+dKs/KuNQAl5 o/NY+QkonW8aQAl0oXMYPvRiXIM4pRJifbXytnhTA8alBx/jefG2ar3DBlt34/PXz9M+nMVN iNaPUdCApJc2ItejOmLGoK1qQLV9pJmXBnL10DYoBA5aHNfj8ZNwZa5O4CzgTJeilKJmrQJs IHIt1/7/Sg2p3iq/Hz0/5W05rq4M9aN2B5FLohUP4ylVyfxhEIjAs8J4PhIJ9U+CEroogib5 BXAf7bB4vkfAzgPFt1tM9sJZAOH+lCexhwswuNtim4QTZdokqo4o89LkH7V6iFxICeqfp+Wh fmUuGPunLj2Meti6Cn4DjJ/UReROqR+aqawAi/JkfgKE64rrfkhjU8MtT8ivR4S5n6Yo08A7 HvgAlHDWRSGlNSDxwK9HtXy4FS2I60EdUIJM+Ut9OZNJG4CpbEQW1VBQoQoPuBw2EVa4P0u0 TgzQF+VoAAAAAElFTkSuQmCC In-Reply-To: <452E2151.80500@suutari.iki.fi> (Ari Suutari's message of "Thu, 12 Oct 2006 14:04:49 +0300") References: <452E2151.80500@suutari.iki.fi> Organization: *BSD Users - Fanatics Dept. X-Request-PGP: X-GNUPG-Fingerprint: CF5E 6862 2777 A471 5D2E 0015 8DA6 D56D 17E5 2A51 From: Marko Lerota Date: Thu, 12 Oct 2006 19:20:10 +0200 Message-ID: <86hcy9zc1h.fsf@sparrow.local> User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-stable@freebsd.org Subject: Re: carp0 interface goes down on 6.2-PRERELEASE X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Oct 2006 17:20:18 -0000 Ari Suutari writes: > carp0: flags=49 mtu 1500 > inet 192.168.5.59 netmask 0xffffff00 > carp: BACKUP vhid 55 advbase 1 advskew 0 > + sleep 5 > + ifconfig carp0 > carp0: flags=8 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