So, what you need to know.
An IPv4 address uses 32 bits.
An IPv6 address uses 128 bits.
IPv4 addresses are written in dotted decimal.
IPv6 addresses are written using hexadecimal.
Each hexadecimal digit represents 4 bits, so an IPv6 address consists of 32 hexadecimal digits. These numbers are grouped in 4’s giving 8 groups or blocks. The groups are written with a ":" as a separator.
Sample IPv4 - 203.0.113.10
Sample IPv6 full - 2001:0db8:0001:0000:0000:0ab9:C0A8:0102
Sample IPv6 short - 2001:db8:1::ab9:C0A8:102
Sample IPv6 short 2 - 2001:db8:1:0:0:ab9:C0A8:102
Shortening rules: leading zeros in a group can be dropped (0db8 → db8); one run of all-zero groups can be replaced with :: — only once per address. The 2001:db8::/32 prefix is reserved for documentation and examples.
In IPv4 an address is split into two components: a network component and a node component.
In IPv6 we do the same. The first step is to split the address into two parts. The address is split into two 64-bit segments: the top 64 bits are the network part and the lower 64 bits are the interface ID.
The upper 64 bits are used for routing. The lower 64 bits identify the address of the interface or node. It can be derived from the MAC address (EUI-64), but modern systems usually generate a random or stable privacy ID instead, so the MAC address is not exposed.
The upper 64 bits consist of the prefix assigned by the ISP (typically a /48 or /56 for a site) and the subnet ID, which the network administrator controls. With a /48 the subnet ID is 16 bits — 65,536 subnets of /64.
IPv6 has three main unicast address types: Global Unicast Address (Scope Internet - routed on Internet), Unique Local (Scope Internal Network or VPN internally routable, but Not routed on Internet), Link Local (Not Routed internally or externally).
IPv4 internal addresses use the reserved number ranges 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16. These addresses are not routed on the Internet and are reserved for internal networks.
IPv6 also has two Internal address types: Link Local & Unique Local.
Global unicast addresses are routable on the Internet and belong to 2000::/3 — they start with 2 or 3 (e.g. 2001:, 2a00:, 2600:). These addresses are known as global Unicast addresses and are the equivalent of the public addresses of IPv4 networks.
They work only within a single network segment (link). It is equivalent to the IPv4 range 169.254.0.0/16 which is allocated on an IPv4 network when no DHCP server is found.
Link local addresses belong to fe80::/10 (in practice they start with fe80::).
They are restricted to a link and are not routed on the internal network or the Internet.
Link Local addresses are self-assigned i.e. they do not require a DHCP server.
A link local address is required on every IPv6 interface even if no routing is present.
Unique Local addresses are meant to be used inside an internal network. They are routed on the Internal network but not routed on the Internet. They are equivalent to the IPv4 private ranges 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16
Unique Local addresses belong to fc00::/7. Only the fd00::/8 half is used: an organisation picks a random 40-bit ID and gets its own /48, e.g. fd12:3456:789a::/48. The fc00::/8 half is reserved and not used.
On IPv4 networks you can access a network resource e.g. a web page using the format
http://192.168.1.21/webpage
However IPv6 addresses contain a colon as separator and so must be enclosed in square brackets.
http://[2001:db8::1]/webpage — with a port: http://[2001:db8::1]:8080/
The IPv4 loopback address is 127.0.0.1 (the whole 127.0.0.0/8 range is loopback).
The IPv6 loopback address is ::1