Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 Dec 2005 14:45:44 +0100 (CET)
From:      "oHmEr" <ohmer@epita.info>
To:        "Philippe Pegon" <Philippe.Pegon@crc.u-strasbg.fr>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: ifconfig can't remove aliases
Message-ID:  <64508.213.41.241.56.1134308744.squirrel@webmail.epita.info>
In-Reply-To: <439C1EAC.6090102@crc.u-strasbg.fr>
References:  <51053.213.41.241.56.1134240324.squirrel@webmail.epita.info> <439C1EAC.6090102@crc.u-strasbg.fr>

next in thread | previous in thread | raw e-mail | index | archive | help
On Dim 11 décembre 2005 13:42, Philippe Pegon wrote:
>
> try :
>
> $ sudo ifconfig dc0 inet6 2001:7a8:b138::1 delete
>
> or
>
> $ sudo ifconfig dc0 inet6 2001:7a8:b138::1 -alias
>
> in ifconfig(8) :
>
> SYNOPSIS
>       ifconfig [-L] [-k] [-m] interface [create] [address_family]
> [address [dest_address]] [parameters]
>
> parameters is in the end (like delete or -alias)

thanks ! it's working, i just had to rtfm. i didn't as i always ordered my
options like this and it was working on 5.4-STABLE system :

$ uname -a
FreeBSD marge.cload.net 5.4-STABLE FreeBSD 5.4-STABLE #3: Sat Nov 26
19:12:49 CET 2005     root@marge.cload.net:/usr/obj/usr/src/sys/MARGE 
i386
$ ifconfig fxp0 inet6
fxp0: flags=9843<UP,BROADCAST,RUNNING,SIMPLEX,LINK0,MULTICAST> mtu 1500
  options=8<VLAN_MTU>
  inet6 fe80::202:a5ff:fe51:2de3%fxp0 prefixlen 64 scopeid 0x1
  inet6 2001:7a8:6cd1::1 prefixlen 48
  inet6 2001:7a8:6cd1::caca prefixlen 48
$ sudo ifconfig fxp0 inet6 -alias 2001:7a8:6cd1::caca
$ ifconfig fxp0 inet6
fxp0: flags=9843<UP,BROADCAST,RUNNING,SIMPLEX,LINK0,MULTICAST> mtu 1500
  options=8<VLAN_MTU>
  inet6 fe80::202:a5ff:fe51:2de3%fxp0 prefixlen 64 scopeid 0x1
  inet6 2001:7a8:6cd1::1 prefixlen 48

anyway, it's not very important as man page syntax is both case working.
however, the ifconfig option parser could have been more helpful by
printing the token on which it detected an error. i'd have guess that
"-alias" was an invalid inet6 address...

-- 
Matthieu Michaud - EPITA 2007



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