From owner-freebsd-questions@FreeBSD.ORG Fri Mar 21 10:15:11 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 8F896106578C for ; Fri, 21 Mar 2008 10:15:11 +0000 (UTC) (envelope-from spil.oss@googlemail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.235]) by mx1.freebsd.org (Postfix) with ESMTP id 5B8FC8FC20 for ; Fri, 21 Mar 2008 10:15:11 +0000 (UTC) (envelope-from spil.oss@googlemail.com) Received: by wx-out-0506.google.com with SMTP id i29so1622498wxd.7 for ; Fri, 21 Mar 2008 03:15:10 -0700 (PDT) Received: by 10.70.47.19 with SMTP id u19mr4022716wxu.1.1206094510139; Fri, 21 Mar 2008 03:15:10 -0700 (PDT) Received: by 10.70.126.11 with HTTP; Fri, 21 Mar 2008 03:15:10 -0700 (PDT) Message-ID: <5fbf03c20803210315h59d6fd83m39e46d507a4dea20@mail.gmail.com> Date: Fri, 21 Mar 2008 11:15:10 +0100 From: "Spil Oss" To: "Pietro Cerutti" , freebsd-questions@freebsd.org In-Reply-To: <47E2765E.7050800@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <5fbf03c20803200422o1709e6edmaa24c85634a4b403@mail.gmail.com> <47E666CF.2080407@FreeBSD.org> <47E2765E.7050800@FreeBSD.org> Cc: Subject: Re: Removing aliases removes primary IP X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: spil.oss@gmail.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Mar 2008 10:15:11 -0000 Thanks Pietro! Somehow the man-page for ifconfig is confusing.... In the examples: Add the IPv6 address 2001:DB8:DBDB::123/48 to the interface em0: # ifconfig em0 inet6 2001:db8:bdbd::123 prefixlen 48 alias Note that lower case hexadecimal IPv6 addresses are acceptable. Remove the IPv6 address added in the above example, using the / character as shorthand for the network prefix, and using delete as a synonym for the canonical form of the option -alias: # ifconfig em0 inet6 2001:db8:bdbd::123/48 delete Lesson for me is that you should have only one 'command' per invocation where I had 2. alias is not an atribute/option of the setting I was trying to do.... Kind regards, Spil. On 20/03/2008, Pietro Cerutti wrote: > -----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----- >