The IPv6 protocol is the next generation of large-scale IP networks, it supports addresses that are 128 bits long. This allows 2128可能地址(与232possible IPv4 addresses).
Typically, the IP address assigned on an IPv6 host consists of a 64-bit子网Subnet is the logical division of an IP network.identifier and a 64-bit interface identifier. IPv6 addresses are represented as eight colon-separated fields of up to four hexadecimal digits each. The following are examples of IPv6 addresses:
2001:0000:0eab:DEAD:0000:00A0:ABCD:004E
The use of the“::”symbol is a special syntax that you can use to compress one or more group of zeros or to compress leading or trailing zeros in an address. The“::”can appear only once in an address.
For example, the address,2001:0000:0eab:dead:0000:00a0:abcd:004ecan also be represented as:
2001:0:eab:DEAD:0:A0:ABCD:4E – leading zeros can be omitted
2001:0:0eab:dead:0:a0:abcd:4e – not case sensitive
2001:0:0eab:dead::a0:abcd:4e - valid
2001::eab:dead::a0:abcd:4e - invalid
IPv6 uses a "/" notation which describes the no: of bits innetmaskNetmask is a 32-bit mask used for segregating IP address into subnets. Netmask defines the class and range of IP addresses., similar to IPv4.
2001:eab::1/128 – single Host
2001:eab::/64 – network