From owner-freebsd-questions@FreeBSD.ORG Sun Dec 11 13:42:25 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1BAD516A420 for ; Sun, 11 Dec 2005 13:42:25 +0000 (GMT) (envelope-from ohmer@epita.info) Received: from marge.cload.net (marge.cload.net [213.41.172.209]) by mx1.FreeBSD.org (Postfix) with SMTP id 243D043D78 for ; Sun, 11 Dec 2005 13:42:19 +0000 (GMT) (envelope-from ohmer@epita.info) Received: (qmail 35846 invoked by uid 80); 11 Dec 2005 14:45:44 +0100 Received: from 213.41.241.56 (SquirrelMail authenticated user ohmer@epita.info) by webmail.epita.info with HTTP; Sun, 11 Dec 2005 14:45:44 +0100 (CET) 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> Date: Sun, 11 Dec 2005 14:45:44 +0100 (CET) From: "oHmEr" To: "Philippe Pegon" User-Agent: SquirrelMail/1.4.5 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Cc: freebsd-questions@freebsd.org Subject: Re: ifconfig can't remove aliases X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ohmer@epita.info List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Dec 2005 13:42:25 -0000 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 mtu 1500 options=8 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 mtu 1500 options=8 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