ipv6calc will do some format changes and calculations for you

Intention:
* This utility can be used by the IPv6 enabled initscripts for
  better duplicate address detection on setup of IPv6 addresses.

WWW: http://www.bieringer.de/linux/IPv6/tools/