Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Mar 2008 15:36:14 +0100
From:      Pietro Cerutti <gahr@FreeBSD.org>
To:        spil.oss@gmail.com, User Questions <freebsd-questions@freebsd.org>
Subject:   Re: Removing aliases removes primary IP
Message-ID:  <47E2765E.7050800@FreeBSD.org>
In-Reply-To: <47E666CF.2080407@FreeBSD.org>
References:  <5fbf03c20803200422o1709e6edmaa24c85634a4b403@mail.gmail.com> <47E666CF.2080407@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
-----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-----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?47E2765E.7050800>