IPv6 notes


IPv6 address space

2^128

340 undecillion

3.4 x 10^38

IPv6 Addresses

  • Represented in Hex
  • Broken into 8 equal parts
  • Utilizes colons as delimiter

2001:0db8:1f05:09a4:a821:7c24:5fb8:036d

Hextet = 16 bits. 2001 Each string = nibble (4 bits)

Take 4 hextet’s 2001:0db8:1f05:09a4 and multiply it by 4 = 64 bits

128 bit hex

Special addresses

::/128 - Unspecified Address (0.0.0.0/32 in IPv4)

::/0 - Default route (0.0.0.0/0 in IPv4)

::1/128 - Loop back (127.0.0.1/8) - RFC 5156

2001:db8::/32 - Documentation and Miscellaneous Addresses

0100::/64 - Purpose of discard (null route)

Address Types

  • Unicast - One to one.
    • 2003::/3 - Global - RFC 4291 + 3587
    • fe80::/64 - Link-local - RFC 4007
    • fc00::/7 - Unique local - RFC 4193
  • Multicast - One to many
    • ff00::/8 - All Multicast
    • ff02::1:f00:0/104 - Solicited-node
    • ff02::1 - Link-local all-nodes
  • Anycast - Any to shared (really unicast) - Think of it as a function - Common task DNS/DHCP

Depreciated Unicast

  • Site-local addresses RFC 3879
    • fec0::/10
  • IPv4-compatible addresses - RFC 4291
    • ::/96
  • 6bone - RFC 3701
    • 3ffe::/16 and 5f00::/8

IPv6 formatting rules

  • IPv6 is represented in Hex, it should use all lowercase.

    2001:0db8:efac:5150:0000:0000:0000:1

  • Add or remove leading zeros and do zero compression.

    2001:db8:efac:5150::1

  • If a port is needed you surround the address with [ ]

    http://[2001:db8:efac:5150::1]:8080

comments powered by Disqus