From owner-freebsd-net@FreeBSD.ORG Sun May 8 17:22:45 2005 Return-Path: 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 A4ECD16A4E4 for ; Sun, 8 May 2005 17:22:45 +0000 (GMT) Received: from smartmx-06.inode.at (smartmx-06.inode.at [213.229.60.38]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5FD4943D97 for ; Sun, 8 May 2005 17:22:45 +0000 (GMT) (envelope-from mbretter@inode.at) Received: from [83.64.182.194] (port=57307 helo=[192.168.201.12]) by smartmx-06.inode.at with esmtp (Exim 4.34) id 1DUpUK-0003vl-Di; Sun, 08 May 2005 19:22:44 +0200 Message-ID: <427E4ADD.70104@inode.at> Date: Sun, 08 May 2005 19:22:37 +0200 From: Michael Bretterklieber User-Agent: Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.7.5) Gecko/20041217 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Max Laier References: <427E443B.9070301@inode.at> <200505081903.09631.max@love2party.net> In-Reply-To: <200505081903.09631.max@love2party.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-net@freebsd.org Subject: Re: Multiple Interfaces with the same IP X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 May 2005 17:22:45 -0000 Hi, Max Laier wrote: > On Sunday 08 May 2005 18:54, Michael Bretterklieber wrote: > >>it looks like that under 5-stable it's allowed to have different >>interfaces with the same IP, bug or feature? > > > Feature and required for CARP to function. You need to change your routeing ok, this make sense. > table to make sure the right one is used for outgoing traffic (or you just > don't set the same IP on more than one interface). > sure, but in my case the Iface is configured with Mpd. I'm trying to catch that case, where a user with a static-IP (provided by the RADIUS server) was logged in twice. I tried to catch the return value from ifconfig, but since it's allowed to have multiple ifaces with the same ip, ifconfig succeeds. ... so, it looks like I have to find another way :-( thanx, bye, Michael