From owner-freebsd-bugs Tue Jul 2 6: 9:22 2002 Delivered-To: freebsd-bugs@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 504C637B400; Tue, 2 Jul 2002 06:09:20 -0700 (PDT) Received: from lips.thebarn.com (lips.borg.umn.edu [160.94.232.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9133B43E13; Tue, 2 Jul 2002 06:09:19 -0700 (PDT) (envelope-from cattelan@thebarn.com) Received: from lupo (c-24-245-56-205.mn.client2.attbi.com [24.245.56.205]) by lips.thebarn.com (8.12.4/8.12.4) with ESMTP id g62D9I25049716; Tue, 2 Jul 2002 08:09:18 -0500 (CDT) (envelope-from cattelan@thebarn.com) X-Authentication-Warning: lips.thebarn.com: Host c-24-245-56-205.mn.client2.attbi.com [24.245.56.205] claimed to be lupo Subject: Re: misc/38672: ifconfig+alias From: Russell Cattelan To: Doug Barton Cc: freebsd-bugs@FreeBSD.org In-Reply-To: <3D213E8A.B83A7D98@FreeBSD.org> References: <200207020200.g622073J081748@freefall.freebsd.org> <3D213E8A.B83A7D98@FreeBSD.org> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.7 Date: 02 Jul 2002 08:09:13 -0500 Message-Id: <1025615358.14740.28.camel@lupo.thebarn.com> Mime-Version: 1.0 Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Tue, 2002-07-02 at 00:47, Doug Barton wrote: > Russell Cattelan wrote: > > > > The following reply was made to PR misc/38672; it has been noted by GNATS. > > > > From: Russell Cattelan > > To: freebsd-gnats-submit@FreeBSD.org, phisto@mail.ru > > Cc: > > Subject: Re: misc/38672: ifconfig+alias > > Date: 01 Jul 2002 20:56:24 -0500 > > > > I just hit this bug also... does anybody have a fix for it yet? > > It seems to have showwn up someplace between 4.5 and 4.6 > > > > It appears something is being over checking if I create aliases > > with different netmasks it works, but creating aliases > > with the same netmask as an already existing ip fails. > > netmasks for aliases should all be 255.255.255.255: > > alias Establish an additional network address for this interface. > This > is sometimes useful when changing network numbers, and one > wishes > to accept packets addressed to the old interface. If the > address > is on the same subnet as the first network address for this > interface, a non-conflicting netmask must be given. Usually > 0xffffffff is most appropriate. > > The fact that this is being enforced is not a bug. Ahh ok I understand now. The fact that this is a non-obvious behavior change between 4.5 and 4.6 a better error message out of ifconfig might be a good idea. At the the very least a warning from ifconfig when trying to use a netmask other than 255.255.255.255 on an alias. -Russell To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message