From owner-freebsd-stable@FreeBSD.ORG Thu Feb 14 12:28:53 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AA67B16A46C for ; Thu, 14 Feb 2008 12:28:53 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mail.cksoft.de (mail.cksoft.de [62.111.66.27]) by mx1.freebsd.org (Postfix) with ESMTP id 6463813C4E8 for ; Thu, 14 Feb 2008 12:28:53 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from localhost (amavis.str.cksoft.de [192.168.74.71]) by mail.cksoft.de (Postfix) with ESMTP id AB70541C750; Thu, 14 Feb 2008 13:03:55 +0100 (CET) X-Virus-Scanned: amavisd-new at cksoft.de Received: from mail.cksoft.de ([62.111.66.27]) by localhost (amavis.str.cksoft.de [192.168.74.71]) (amavisd-new, port 10024) with ESMTP id nZOK1buw3ekJ; Thu, 14 Feb 2008 13:03:55 +0100 (CET) Received: by mail.cksoft.de (Postfix, from userid 66) id 5BF2141C749; Thu, 14 Feb 2008 13:03:55 +0100 (CET) Received: from maildrop.int.zabbadoz.net (maildrop.int.zabbadoz.net [10.111.66.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.int.zabbadoz.net (Postfix) with ESMTP id A410C44487F; Thu, 14 Feb 2008 12:03:42 +0000 (UTC) Date: Thu, 14 Feb 2008 12:03:42 +0000 (UTC) From: "Bjoern A. Zeeb" X-X-Sender: bz@maildrop.int.zabbadoz.net To: Daniel O'Connor In-Reply-To: <200802142227.41160.doconnor@gsoft.com.au> Message-ID: <20080214120131.I49429@maildrop.int.zabbadoz.net> References: <200802142227.41160.doconnor@gsoft.com.au> X-OpenPGP-Key: 0x14003F198FEFA3E77207EE8D2B58B8F83CCF1842 MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-stable@freebsd.org Subject: Re: Can't delete IPV6 addresses with ifconfig X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Feb 2008 12:28:53 -0000 On Thu, 14 Feb 2008, Daniel O'Connor wrote: Hi, > I am experimenting with IPv6 and I can't seem to remove an IPv6 address > from an interface, eg I have.. > > But I can't remove it, viz.. > [midget 22:11] ~ >sudo ifconfig fxp0 -alias 2002:792d:8527::1:1/64 > ifconfig: 2002:792d:8527::1:1/64: bad value > [midget 22:27] ~ >sudo ifconfig fxp0 delete 2002:792d:8527::1:1/64 > ifconfig: 2002:792d:8527::1:1/64: bad value > [midget 22:27] ~ >sudo ifconfig fxp0 delete 2002:792d:8527::1:1 > ifconfig: 2002:792d:8527::1:1: bad value > [midget 22:27] ~ >sudo ifconfig fxp0 delete 2002:792d:8527::1:1 > prefixlen 64 > ifconfig: 2002:792d:8527::1:1: bad value > [midget 22:27] ~ >sudo ifconfig fxp0 delete 2002:792d:8527::/64 > ifconfig: 2002:792d:8527::/64: bad value > > Anyone know the right way to do this? :) yes, man ifocnfig says ifconfig [-L] [-k] [-m] interface [create] [address_family] [address [dest_address]] [parameters] The following parameters may be set with ifconfig: -alias Remove the network address specified. This would be used if you ... Conclusion: -alias is a "parameter" and belongs to the end after the address. The it works for IPv4 is "pure luck". /bz -- Bjoern A. Zeeb bzeeb at Zabbadoz dot NeT Software is harder than hardware so better get it right the first time.