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.
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"