From owner-freebsd-questions@FreeBSD.ORG Thu Mar 20 14:36:17 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6AFF81065696 for ; Thu, 20 Mar 2008 14:36:17 +0000 (UTC) (envelope-from gahr@FreeBSD.org) Received: from cpanel03.rubas-s03.net (cpanel03.rubas-s03.net [195.182.222.73]) by mx1.freebsd.org (Postfix) with ESMTP id 353F38FC1B for ; Thu, 20 Mar 2008 14:36:17 +0000 (UTC) (envelope-from gahr@FreeBSD.org) Received: from [213.142.182.66] (helo=gahrtop.localhost) by cpanel03.rubas-s03.net with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.68) (envelope-from ) id 1JcLsO-0000xo-Ap; Thu, 20 Mar 2008 15:36:16 +0100 Message-ID: <47E2765E.7050800@FreeBSD.org> Date: Thu, 20 Mar 2008 15:36:14 +0100 From: Pietro Cerutti Organization: The FreeBSD Project User-Agent: Thunderbird 2.0.0.12 (X11/20080311) MIME-Version: 1.0 To: spil.oss@gmail.com, User Questions References: <5fbf03c20803200422o1709e6edmaa24c85634a4b403@mail.gmail.com> <47E666CF.2080407@FreeBSD.org> In-Reply-To: <47E666CF.2080407@FreeBSD.org> X-Enigmail-Version: 0.95.6 OpenPGP: id=9571F78E; url=http://gahr.ch/pgp/ Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cpanel03.rubas-s03.net X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - FreeBSD.org X-Source: X-Source-Args: X-Source-Dir: Cc: Subject: Re: Removing aliases removes primary IP X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Mar 2008 14:36:17 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Pietro Cerutti wrote: | 2) you remove an alias which the 'delete' argument. Since you don't | specify which alias to be removed, the lowest IP number is removed. In | your case, the lowest IP number happens to be your primary :-) Maybe someone with a doc@ commit bit could commit the following patch, since this behavior is not documented in ifconfig(8). - --- ifconfig.8.orig 2008-03-20 15:34:17.000000000 +0100 +++ ifconfig.8 2008-03-20 15:34:43.000000000 +0100 @@ -205,7 +205,8 @@ ~ .Li 0xffffffff ~ is most appropriate. ~ .It Fl alias - -Remove the network address specified. +Remove the network address specified, or the one with the lowest +value if none is specified. ~ This would be used if you incorrectly specified an alias, or it ~ was no longer needed. ~ If you have incorrectly set an NS address having the side effect - -- Pietro Cerutti gahr@FreeBSD.org PGP Public Key: http://gahr.ch/pgp -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (FreeBSD) iEYEAREKAAYFAkfidl0ACgkQwMJqmJVx9456FgCaAlczsQ9UauMWPz690OtFc17H oM4AnjiOmr/jykJciNsC7i8d6Hzbcm8t =DBmc -----END PGP SIGNATURE-----