While experimenting with IPv6 on Precise I found an interesting web page explaining how the 128 binary bits that make up an IPv6 IP address are divided up between the 48 bits which define the Internet address, the 16 bits which are used for the subnet, and the remaining 64 bits which are used for devices that are used on a particular subnet:
http://www.exabyte.net/lambert/subne...et_masking.htm
The current IPv4 IP address has 32 bits, which allows for 4,294,967,296 connections.
The 48 bits reserved for Internet addresses in IPv6 allows for 281,474,976,710,656 connections. If there are 7 billion people on this planet those 48 bits will allow EVERYONE on this planet plus EVERYONE on 42,209 other planets as populated as this one to have their own IPv6 address!
But, just like IPv4, some patterns of the 48 Internet address bits are reserved for specific uses.
https://wiki.ubuntu.com/IPv6
http://www.exabyte.net/lambert/subne...et_masking.htm
The current IPv4 IP address has 32 bits, which allows for 4,294,967,296 connections.
The 48 bits reserved for Internet addresses in IPv6 allows for 281,474,976,710,656 connections. If there are 7 billion people on this planet those 48 bits will allow EVERYONE on this planet plus EVERYONE on 42,209 other planets as populated as this one to have their own IPv6 address!
But, just like IPv4, some patterns of the 48 Internet address bits are reserved for specific uses.
https://wiki.ubuntu.com/IPv6
Special IPv6 address ranges
Address ranges are specified using a prefix. This is similar to the IPv4 concept of a network prefix and netmask, but in IPv6 we always use CIDR notation to specify the number of bits at the start of the mask that are 1. For example, the address range fe80::/10 includes all addresses that are the same as the address fe80:: in the first 10 bits, i.e. all beginning with the bit pattern 1111 1110 10. One hex digit corresponds to four bits: 1111 is f, 1110 is e. 10 is the most significant two bits of 1000 which is 8 in hex, but since this length is not a multiple of 4, the range also includes addresses with this digit set to 9 (1001), a (1010) and b (1011). Obviously a network prefix of length 128 specifies an individual address.
Some IPv6 address prefixes have been deprecated, and should no longer be used.
Some address prefixes are special use:
Address ranges are specified using a prefix. This is similar to the IPv4 concept of a network prefix and netmask, but in IPv6 we always use CIDR notation to specify the number of bits at the start of the mask that are 1. For example, the address range fe80::/10 includes all addresses that are the same as the address fe80:: in the first 10 bits, i.e. all beginning with the bit pattern 1111 1110 10. One hex digit corresponds to four bits: 1111 is f, 1110 is e. 10 is the most significant two bits of 1000 which is 8 in hex, but since this length is not a multiple of 4, the range also includes addresses with this digit set to 9 (1001), a (1010) and b (1011). Obviously a network prefix of length 128 specifies an individual address.
IPv6 address | Prefix length (bits) | Description | Notes | |||
:: | 128 | unspecified | Used for default route and router solicitations. cf. 0.0.0.0 in IPv4 | |||
::1 | 128 | loopback address | cf. 127.0.0.1 in IPv4 | |||
::ffff:a.b.c.d | 96 | IPv4 mapped IPv6 address | The lower 32 bits are the IPv4 address. Used in socket API's to represent IPv4 hosts. | |||
fe80:: | 10 | link-local | Unroutable autoconfigured addresses used on a LAN, e.g. for DHCPv6 | |||
fc00:: | 7 | unique local | Addresses used only within an autonomous system, unroutable globally. Cf. RFC 1918 addresses such as used in NAT. | |||
ff00:: | 8 | multicast | ||||
2000:: | 3 | global unicast | All global unicast addresses currently begin with 2. |
Some IPv6 address prefixes have been deprecated, and should no longer be used.
deprecated IPv6 address | Prefix length (bits) | Description | Notes | |||
3ffe:: | 16 | 6bone prefix | Used 1998-2006. | |||
::a.b.c.d | 96 | embedded IPv4 | 96 zero bits followed by 32 IPv4 bits. Also called “IPv4 compatible IPv6 address”. Replaced by mapped addresses. | |||
fec0:: | 10 | site-local | Replaced by Unique Local Addresses |
Some address prefixes are special use:
special IPv6 address | Prefix length (bits) | Description | Notes | |||
2001:db8:: | 32 | documentation examples | Not to be routed. | |||
2001:0:: | 32 | Teredo tunnels | the remaining bits come from a Teredo server and the client NAT device. | |||
2002:: | 16 | 6to4 tunnels | the next 32 bits are the client IPv4 address |
Comment