Re: Removing aliases removes primary IP



Thanks Pietro!

Somehow the man-page for ifconfig is confusing....

In the examples:
<quote>
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
</quote>

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 <gahr@xxxxxxxxxxx> 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@xxxxxxxxxxx

PGP Public Key:
http://gahr.ch/pgp

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (FreeBSD)

iEYEAREKAAYFAkfidl0ACgkQwMJqmJVx9456FgCaAlczsQ9UauMWPz690OtFc17H
oM4AnjiOmr/jykJciNsC7i8d6Hzbcm8t
=DBmc
-----END PGP SIGNATURE-----

_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: Removing aliases removes primary IP
    ... Pietro Cerutti wrote: ... | specify which alias to be removed, the lowest IP number is removed. ... -Remove the network address specified. ...
    (freebsd-questions)
  • Re: Can not make alias for rl0
    ... >I got a problem when making alias for rl0. ... if primary IP on rl0 is in 192.168.0/24 network then you need specify ...
    (freebsd-questions)
  • Re: USED()
    ... Specifies a table's work area or alias. ... if an alias is in use with the alias you specify with cTableAlias; ...
    (microsoft.public.fox.programmer.exchange)
  • Re: Something else related to work item.
    ... Please do not send e-mail directly to this alias. ... KMDF framework, or the context info is only used by driver writers' own ... Meanwhile, for WDM work item object, we can specify whether we want to use ... callback has been called and completed. ...
    (microsoft.public.development.device.drivers)
  • Re: Something else related to work item.
    ... Please do not send e-mail directly to this alias. ... KMDF framework, or the context info is only used by driver writers' own ... Meanwhile, for WDM work item object, we can specify whether we want to use ... callback has been called and completed. ...
    (microsoft.public.development.device.drivers)