From owner-freebsd-net@FreeBSD.ORG Thu Nov 17 12:46:44 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 1E6AC16A41F; Thu, 17 Nov 2005 12:46:44 +0000 (GMT) (envelope-from kaakun@highway.ne.jp) Received: from mx.highway.ne.jp (pip7.gate01.com [61.122.117.245]) by mx1.FreeBSD.org (Postfix) with ESMTP id C567443D46; Thu, 17 Nov 2005 12:46:43 +0000 (GMT) (envelope-from kaakun@highway.ne.jp) Received: from [202.213.251.158] (helo=[192.168.20.8]) by pop12.isp.us-com.jp with esmtp (Mail 4.20) id 1EcjA2-000693-Jd; Thu, 17 Nov 2005 21:46:42 +0900 Message-ID: <437C7B8A.2080802@highway.ne.jp> Date: Thu, 17 Nov 2005 21:46:02 +0900 From: Kazuaki Oda User-Agent: Mozilla Thunderbird 1.0.6 (X11/20050731) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Gleb Smirnoff References: <437C21AF.2070107@highway.ne.jp> <20051117090850.GY1647@cell.sick.ru> In-Reply-To: <20051117090850.GY1647@cell.sick.ru> Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit Cc: freebsd-net@FreeBSD.org Subject: Re: carp backup host replies to arp-request 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: Thu, 17 Nov 2005 12:46:44 -0000 Gleb Smirnoff wrote: > Kazuaki-san, > > On Thu, Nov 17, 2005 at 03:22:39PM +0900, Kazuaki Oda wrote: > K> I have set up 2 routers with FreeBSD 6.0-RELEASE. They are using carp > K> interfaces, so one is a master router and another is a backup. > K> They seemed to work fine, but a few days later I noticed that not only > K> master router but also backup router replies to arp-requests of the > K> common IP address from a layer 3 switch. This behavior confuses the > K> switch, and sometimes it makes the switch to send a packet addressed > K> to the common IP address to the port which is connected to backup router. > K> I googled and found that OpenBSD fixed this problem in ip_carp.c 1.62. > K> I hope that someone import this into FreeBSD... > > Can you please confirm, that the attached patch fixes the problem for you? Yes! I just modified the patch (because I am using 6.0-RELEASE replaced IF_LLADDR to IFP2ENADDR), applied the patch, rebuilded kernel and rebooted the system. So I get no arp-reply from backup router. Layer 3 switch never sends packets to backup router. Thanks. --------------------- Kazuaki Oda