See http://www.bieringer.de/linux/IPv6/IPv6-HOWTO/scripts/current/index.html for more details.