Date: Thu, 14 Feb 2008 12:03:42 +0000 (UTC) From: "Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net> To: Daniel O'Connor <doconnor@gsoft.com.au> Cc: freebsd-stable@freebsd.org Subject: Re: Can't delete IPV6 addresses with ifconfig Message-ID: <20080214120131.I49429@maildrop.int.zabbadoz.net> In-Reply-To: <200802142227.41160.doconnor@gsoft.com.au> References: <200802142227.41160.doconnor@gsoft.com.au>
next in thread | previous in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080214120131.I49429>