Reading an address
IPv6 uses 128 bits, written as eight hexadecimal groups. Each hexadecimal digit represents four bits; each full four-digit group represents 16 bits.
2001:0db8:0042:0007:0000:0000:0000:0025
2001:db8:42:7:0:0:0:25
2001:db8:42:7::25These added examples denote the same address. Remove leading zeros within groups, not trailing zeros. Use :: at most once to replace consecutive all-zero groups; expand it until there are eight groups. Two occurrences would leave the missing group counts ambiguous.
In 2001:db8:1234:5::abcd/64, the first four groups are the 64-bit prefix. The complete network notation is 2001:db8:1234:5::/64; the remaining identifier is 0000:0000:0000:abcd. /64 is a common subnet boundary, not a rule that all IPv6 routing prefixes have 64 bits.
An address identifies an interface rather than an entire device in every context. One interface can have multiple IPv6 addresses.
Delivery types and special ranges
| Type/address | Meaning |
|---|---|
| Unicast | Delivery to one interface |
| Multicast | Delivery to interested members of a group; IPv6 multicast allocation is ff00::/8 |
| Anycast | Several interfaces share an address; routing selects one |
| Global unicast | Globally scoped addressing; the source illustrates 2000::/3 |
| Link-local | Used only on its link; allocated from fe80::/10 |
| Unique local | Private routing scope, fc00::/7; locally assigned form begins fd |
::1 | Loopback: this device itself |
:: | Unspecified: absence of a usable source address in contexts such as DAD |
::ffff:192.0.2.10 | IPv4-mapped representation of an IPv4 address |
IPv6 has no broadcast address. A multicast group with one current member is still multicast. Anycast is identified by routing to one of the shared-address destinations, not by counting how many receivers happened to receive a packet. “Nearest” means preferred by routing, not necessarily geographically closest. Anycast uses unicast address space, not a special anycast prefix.
ULA may coexist with a global address on the same host. Globally scoped does not guarantee firewall permission or actual reachability. Deprecated site-local addresses are historical rather than a recommended replacement for ULA.
On-link means direct next-hop delivery
If 2001:db8:42:7::/64 is advertised as on-link, a host attempts Neighbor Discovery for a destination such as 2001:db8:42:7::99 itself. For an off-link destination, it normally resolves the next-hop router instead.
Direct delivery may cross switches and Wi-Fi access points; it requires no intervening IP router. On-link is a delivery decision, not proof that the target exists. Hosts learn on-link information separately from constructing their own addresses.
Why a link-local address needs a zone
Laptop
/ \
Wi-Fi Ethernet
| |
Router A Router B
fe80::1 fe80::1This added topology is valid because the two routers are on different links. fe80::1 alone may be ambiguous on the laptop. A zone suffix, such as fe80::1%19, selects a local interface/zone. Interface names may also be accepted depending on the operating system.
The suffix is not part of the 128-bit address and is not transmitted as part of that address. Zone numbers are local to the computer; a different computer may number its interfaces differently.
Multicast has scope too: ff02::1 means all nodes on the local link, and ff02::2 means all routers on that link. Scope constrains propagation; it does not create a routing path or guarantee listeners.
Source and related
Lecture 03 - IPv6, PDF pages 19-38 and 98-99. Examples, ambiguity explanation and qualifications are added study explanations.