From owner-freebsd-net@FreeBSD.ORG Mon Nov 21 12:02:34 2005 Return-Path: X-Original-To: freebsd-net@FreeBSD.org Delivered-To: freebsd-net@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B81B316A420 for ; Mon, 21 Nov 2005 12:02:34 +0000 (GMT) (envelope-from glebius@FreeBSD.org) Received: from cell.sick.ru (cell.sick.ru [217.72.144.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id 027BC43D8E for ; Mon, 21 Nov 2005 12:02:20 +0000 (GMT) (envelope-from glebius@FreeBSD.org) Received: from cell.sick.ru (glebius@localhost [127.0.0.1]) by cell.sick.ru (8.13.3/8.13.3) with ESMTP id jALC2IjX077269 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 21 Nov 2005 15:02:18 +0300 (MSK) (envelope-from glebius@FreeBSD.org) Received: (from glebius@localhost) by cell.sick.ru (8.13.3/8.13.1/Submit) id jALC2IsO077268; Mon, 21 Nov 2005 15:02:18 +0300 (MSK) (envelope-from glebius@FreeBSD.org) X-Authentication-Warning: cell.sick.ru: glebius set sender to glebius@FreeBSD.org using -f Date: Mon, 21 Nov 2005 15:02:17 +0300 From: Gleb Smirnoff To: Kazuaki Oda Message-ID: <20051121120217.GQ24212@cell.sick.ru> Mail-Followup-To: Gleb Smirnoff , Kazuaki Oda , freebsd-net@FreeBSD.org References: <437F4D18.9030003@highway.ne.jp> <20051121111717.GO24212@cell.sick.ru> <4381B26B.6080407@highway.ne.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <4381B26B.6080407@highway.ne.jp> User-Agent: Mutt/1.5.6i Cc: freebsd-net@FreeBSD.org Subject: Re: gratuitous ARP from CARP backup host X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Nov 2005 12:02:34 -0000 On Mon, Nov 21, 2005 at 08:41:31PM +0900, Kazuaki Oda wrote: K> >On Sun, Nov 20, 2005 at 01:04:40AM +0900, Kazuaki Oda wrote: K> >K> I reported a problem a few days ago that CARP backup host replies ARP K> >K> request. This problem has been fixed, thanks. But I found one more K> >K> problem. K> >K> K> >K> 1) master host and backup host are connected to the same layer 3 K> >K> switch. K> >K> K> >K> 2) at master host, I run the following command: K> >K> # ifconfig carp2 create K> >K> # ifconfig carp2 vhid 22 advskew 10 pass xxxx 192.168.1.7/24 K> >K> K> >K> 3) master host sends gratuitous ARP. K> >K> K> >K> 4) at backup host, I run the following command: K> >K> # ifconfig carp2 create K> >K> # ifconfig carp2 vhid 22 advskew 100 pass xxxx 192.168.1.7/24 K> >K> K> >K> 5) backup host sends gratuitous ARP. K> >K> And so, layer 3 switch sends packets addressed for 192.168.1.7 to K> >K> the port connected to backup host, sigh... K> > K> >Does it sends packets until next advertisement from master or forever? K> K> Forever. K> Master host never receives the packets. Well, I'm afraid I will just answer that your L3 switch is stupid, if it builds its FIB based only on ARP packets. The correct behavior IMHO would be to correct FIB on every packet with given IP address as src. Since master continously sends the CARP announcements, the FIB of the switch should be corrected in next second. -- Totus tuus, Glebius. GLEBIUS-RIPN GLEB-RIPE