FreeBSD Tip: How to delete all IPv6 address in an interface
Posted on Saturday, April 26, 2008 at 2:08 AM by simoncpuYou can delete all IPv6 addresses in an interface using the following command (vanilla Bourne shell):
Note: replace le0 with your interface name.
while i="`ifconfig le0 | grep inet6 | grep -m 1 -v '%'`"; do
ifconfig le0 $i delete
done