From owner-freebsd-hackers@FreeBSD.ORG Tue Jul 24 04:50:54 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8CF6216A419 for ; Tue, 24 Jul 2007 04:50:54 +0000 (UTC) (envelope-from jdc@parodius.com) Received: from mx01.sc1.parodius.com (mx01.sc1.parodius.com [72.20.106.3]) by mx1.freebsd.org (Postfix) with ESMTP id 7CC5313C428 for ; Tue, 24 Jul 2007 04:50:54 +0000 (UTC) (envelope-from jdc@parodius.com) Received: by mx01.sc1.parodius.com (Postfix, from userid 1000) id 6D1E31CC064; Mon, 23 Jul 2007 21:50:54 -0700 (PDT) Date: Mon, 23 Jul 2007 21:50:54 -0700 From: Jeremy Chadwick To: Evren Yurtesen Message-ID: <20070724045054.GA81397@eos.sc1.parodius.com> References: <46A5492E.90500@ispro.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <46A5492E.90500@ispro.net> User-Agent: Mutt/1.5.15 (2007-04-06) Cc: freebsd-hackers@freebsd.org Subject: Re: alias netmask bug? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Jul 2007 04:50:54 -0000 On Tue, Jul 24, 2007 at 03:34:54AM +0300, Evren Yurtesen wrote: > I remember from earlier versions of FreeBSD that it had a restriction about > alias IP netmasks (somewhere in 3.x,4.x days)... > > as explained here: > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/configtuning-virtual-hosts.html > > However I tried on the loopback interface to add a 2nd IP with the same > netmask as the original IP and it accepts it fine. (on 6.2) > > lo0: flags=8049 mtu 16384 > inet 127.0.0.1 netmask 0xff000000 > inet 127.0.0.2 netmask 0xff000000 > > Is FreeBSD allowing this a bug or ??? It's not a bug. Why did you disregard the instructions, though? > If this is not a bug. What happens if an interface which is connecting to > the machine has 2 IP addresses with same netmask which is not > 255.255.255.255? Does FreeBSD use each IP randomly? Don't know, but my guess is no, it probably does not use "each IP randomly", and I cannot even fathom the network breakage that would ensue as a result of such. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |