From owner-freebsd-stable@FreeBSD.ORG Sat Feb 10 01:00:54 2007 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2A03116A406 for ; Sat, 10 Feb 2007 01:00:54 +0000 (UTC) (envelope-from joao@matik.com.br) Received: from msrv.matik.com.br (msrv.matik.com.br [200.152.83.14]) by mx1.freebsd.org (Postfix) with ESMTP id 8C6F413C442 for ; Sat, 10 Feb 2007 01:00:53 +0000 (UTC) (envelope-from joao@matik.com.br) Received: from anc ([200.152.88.34]) by msrv.matik.com.br (8.13.8/8.13.1) with ESMTP id l1A10mQB013686; Fri, 9 Feb 2007 23:00:51 -0200 (BRST) (envelope-from joao@matik.com.br) From: JoaoBR Organization: Infomatik To: freebsd-stable@freebsd.org Date: Fri, 9 Feb 2007 23:00:34 -0200 User-Agent: KMail/1.9.4 References: <45CCE270.7080704@insidesystems.net> <20070209214908.GA64090@icarus.home.lan> <20070209222925.GB11826@lor.one-eyed-alien.net> In-Reply-To: <20070209222925.GB11826@lor.one-eyed-alien.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200702092300.35420.joao@matik.com.br> X-Virus-Scanned: ClamAV version 0.88.4, clamav-milter version 0.88.4 on msrv.matik.com.br X-Virus-Status: Clean Cc: Kevin Way , Brooks Davis Subject: Re: Desired behaviour of "ifconfig -alias" X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Feb 2007 01:00:54 -0000 On Friday 09 February 2007 20:29, Brooks Davis wrote: > On Fri, Feb 09, 2007 at 01:49:08PM -0800, Jeremy Chadwick wrote: > > On Fri, Feb 09, 2007 at 04:06:56PM -0500, Kevin Way wrote: > > > I recently ran into a bug in the jail startup scripts that caused this > > > command to be executed: > > > > > > ifconfig bce0 -alias > > > > > > It turns out that this command eliminated the primary IP for the > > > device. > > > =2E... > > It's way to late to make this change. This is known behavior and has > been for ages. If there's a bug it's in the documentation. > wellwell, we also were apes for ages but does not mean that we stay behavin= g=20 like them and if some still does so it is also never to late to change=20 that ;) "ifconfig nic -alias" is obviously a wired and confusing behaviour and shou= ld=20 firstable do what it says, remove an alias and not the first IP address eve= n=20 if it can be seen as an alias too. Logic would exist when ifconfig nic -ali= as=20 removes all aliases (or perhaps first of them) but not one by one starting= =20 with the first ip. Then when there is no other alias left it should better= =20 ask if removing the Ip address is really desired since it is essential to=20 have one. rmuser and other utilities also ask such kind of questions for le= ss=20 reason. then already beeing here there is more, ifconfig nic alias does not return= =20 anything at all and ifconfig nic -alias on a nic w/o ip returns "can't assi= gn=20 requested address" ... =2D-=20 Jo=E3o A mensagem foi scaneada pelo sistema de e-mail e pode ser considerada segura. Service fornecido pelo Datacenter Matik https://datacenter.matik.com.br