Introduction
An IPv6 LAN can give one interface several addresses with different scopes and lifetimes. Reading an address accurately requires both its 128-bit value and the link or routing context where it will be used.
Expand first, then compare
Eight groups of four hexadecimal digits represent the 128 bits. Leading zeroes may be omitted in each group, and a double colon can stand in for one run of zero groups. Expanding both inputs before comparison prevents differences in spelling from looking like differences in address.
Canonical formatting uses lowercase, suppresses leading group zeroes and compresses the longest run of at least two zero groups. Ties go to the leftmost run. A prefix length counts bits, so a boundary can cut through a hex digit as well as through a group.
Read an allocation at several lengths
A /56 delegation leaves eight bits to distinguish child /64s. A typical LAN plan assigns one /64 per segment, leaving the lower 64 bits for interface identifiers. Other prefix lengths serve purposes such as routing aggregates and point-to-point links.
IPv6 has no broadcast address. Multicast groups serve functions such as neighbor discovery. A count of all values in a prefix describes address space. Special addresses and assignment rules require separate consideration when choosing an interface address.
Diagram
- 2001:db8:4a00:1200::/56
- 8 subnet bits · ab
- 2001:db8:4a00:12ab::/64
- Interface identifier · 42
Worked examples
Number subnet 171 in a documentation delegation
- Begin with 2001:db8:4a00:1200::/56. The fourth group covers the final eight prefix bits and the eight available subnet bits.
- Write decimal 171 as hex ab. Replacing the low byte 00 with ab gives 2001:db8:4a00:12ab::/64. The child index ranges from 0 through 255.
- Choose 2001:db8:4a00:12ab::42 as an example interface value. Expanding it gives 2001:0db8:4a00:12ab:0000:0000:0000:0042.
IPv6 Calculator: Find the network of a partially filled hex digit
- Enter 2001:db8:5:12ae::7/61. The first three groups account for 48 fixed bits. Another 13 bits come from the fourth group.
- The last digit e is binary 1110. Its leading bit belongs to the prefix. Clearing the other three bits changes e to 8, giving 2001:db8:5:12a8::/61.
- Set those three bits and all four trailing groups to ones. The final address is 2001:db8:5:12af:ffff:ffff:ffff:ffff. The 67 variable bits give 147573952589676412928 positions.
Reference table
| Address or block | Role | Operational context |
|---|---|---|
| ::1 | Loopback | Local system |
| fe80::/10 | Link-local unicast space | Specify the link where needed |
| ff02::1 | All-nodes multicast | Link-local scope |
| 2001:db8::/32 | Documentation | Worked examples |
Configuration example
- Example LAN = 2001:db8:4a00:12ab::/64
- Interface = lan-east
- Example address = 2001:db8:4a00:12ab::42
- Default router = fe80::1 on lan-east
Common mistakes
- Using two double-colon abbreviations in one address, which leaves the omitted lengths ambiguous.
- Inferring on-link delivery from the assigned address alone without checking advertised or configured on-link information.
Frequently asked questions
Why might two links both show fe80::1?
A link-local value is meaningful within a particular link. Each interface can reach its own neighbor using the same spelling, provided the link is specified.
Does an IPv6 router split an oversized packet into fragments?
IPv6 fragmentation is performed by the source. A forwarding router that cannot fit a packet on its outgoing link sends ICMPv6 Packet Too Big feedback, subject to protocol rules.
Can one IPv6 address be compressed in more than one way?
Yes. Leading zeroes in a hextet can be omitted, and one longest run of all-zero hextets can be replaced by ::. Using :: more than once would make the expanded length ambiguous.
Why does an IPv6 link-local address need an interface identifier on some systems?
Link-local scope is limited to one link, and the same address value can exist on several interfaces. A zone or interface name tells the system which link to use.
Does every IPv6 subnet use a /64?
Many ordinary SLAAC LAN designs use /64, but not every prefix in every role is /64. Follow the addressing plan and protocol requirements for the link.
Why are IPv6 addresses enclosed in brackets in a URL?
Colons are part of IPv6 notation and also separate a URL host from its port. Brackets make the address boundary unambiguous, for example https://[2001:db8::1]:8443/.
Does IPv6 have broadcast addresses?
No. IPv6 uses multicast for group delivery and anycast for selected one-to-nearest service behavior; it does not use IPv4-style broadcast.
Can an IPv6 interface have multiple addresses?
Yes. An interface can hold link-local, global, temporary, and other scoped addresses at the same time, depending on its configuration and network advertisements.
What is the role of a link-local IPv6 address?
It enables communication on the local link, including neighbor discovery and many router interactions. Routers do not forward link-local traffic to another link.
Does a compressed IPv6 address preserve leading zeroes?
The notation omits leading zeroes within hextets and may compress one longest zero run. Expanding the address restores a fixed eight-hextet value without changing its bits.
What is an IPv6 unique local address?
Unique local addresses come from fc00::/7 and are intended for local communication. They are not guaranteed to be globally routed, though they are designed to be locally unique when generated correctly.
Why use 2001:db8:: in examples?
The 2001:db8::/32 prefix is reserved for documentation. It avoids presenting a live public allocation as a fictional example.
Does IPv6 require NAT for address conservation?
IPv6's address space is designed to provide abundant addresses, so ordinary deployments do not need NAT for conservation in the same way IPv4 often does. Firewalls and routing policy still control access.
What is Duplicate Address Detection?
IPv6 Neighbor Discovery uses Duplicate Address Detection to check whether an address is already in use on a link before an interface begins using it.
Can an IPv6 subnet include a broadcast address?
No. IPv6 uses multicast rather than broadcast. A prefix calculator can still show its numeric first and last address values, but that does not create an IPv4-style broadcast role.

