IPv6 Explained for People Who Know IPv4
Map your IPv4 knowledge onto IPv6: addresses, prefixes, configuration, neighbor discovery, NAT, firewalls and the habits to unlearn.
Key takeaways
- IPv6 addresses are 128 bits, written in hexadecimal, and an ordinary LAN uses a /64 prefix.
- Every IPv6 interface has a link-local address, and usually one or more global or unique local addresses too.
- Broadcast and ARP are gone; multicast and Neighbor Discovery take their place.
- Hosts can configure themselves from router advertisements, with DHCPv6 as an addition or alternative.
- Security comes from firewall rules, and blocking all ICMPv6 will break the network.
IPv6 does the same job as IPv4: it addresses packets and lets routers forward them. Routing, subnets, default routes, TCP, UDP, ports and DNS all still work the way you expect. The differences that matter are longer addresses, several addresses per interface as the normal state, no broadcast, new ways to configure hosts and no routine need for address translation.
This guide translates what you already know into IPv6 terms and points out the habits that will mislead you.
Addresses and notation
An IPv6 address is eight 16-bit groups:
2001:0db8:0000:0000:0000:ff00:0042:8329
2001:db8::ff00:42:8329 Leading zeros in a group can be dropped, and one run of consecutive zero groups can become ::. The full rules are in how to read and shorten an IPv6 address.
Because colons are part of the address, URLs wrap it in square brackets: http://[2001:db8::10]:8080/.
Prefixes instead of masks
You write prefix lengths the same way as CIDR, such as /48 or /64, and nobody writes dotted subnet masks. The conventions are different, though:
| Prefix | Typical meaning |
|---|---|
/128 | A single address |
/64 | One subnet or LAN |
/56 or /60 | A common delegation to a home |
/48 | A common allocation to a site |
A /64 leaves 64 bits for the interface, an almost unimaginable number of addresses on one segment. That isn't waste to be optimized away. Automatic configuration depends on it, and making LANs smaller breaks things. With IPv4 you size subnets by counting hosts; with IPv6 you count subnets and give each a /64. See IPv6 subnetting.
Many addresses per interface
In IPv4 you usually expect one address per adapter. In IPv6, a laptop might show:
- a link-local address starting
fe80::, used only on the local segment, - a stable global address,
- one or more temporary global addresses used for outgoing connections, and
- possibly a unique local address starting
fd.
This is correct behavior. The system picks a source address according to the destination, following standard selection rules. IPv6 address types explains each.
Link-local addresses also appear as next hops. Your default gateway will often be an fe80:: address, and because the same link-local prefix exists on every interface, commands may need a zone suffix naming the interface, such as fe80::1%eth0 on Linux or fe80::1%12 on Windows.
What replaced familiar pieces
| IPv4 habit | IPv6 equivalent |
|---|---|
| ARP | Neighbor Discovery over ICMPv6 |
| Broadcast | Multicast to specific groups |
| DHCP for everything | Router advertisements, optionally with DHCPv6 |
| 169.254 as a failure sign | fe80 link-local, always present and normal |
| 127.0.0.1 | ::1 |
| RFC 1918 private space | Unique local addresses, often alongside global ones |
| A record in DNS | AAAA record |
| Router fragmentation | Only the sender fragments |
Neighbor Discovery covers the first two rows in detail.
How hosts get configured
Routers send router advertisements that announce the prefixes on the link and offer themselves as default gateway. With SLAAC (stateless address autoconfiguration), a host combines an advertised /64 with an interface identifier it generates and checks that nobody else is using it. No server has to remember anything.
DHCPv6 can assign addresses or only supply extra settings. DNS servers can also be advertised directly by the router. The default gateway comes from router advertisements, not from DHCPv6, which surprises people coming from IPv4.
Providers commonly use DHCPv6 prefix delegation to hand your router a block, which it then splits among your LANs. The details are in SLAAC and DHCPv6.
Life without NAT
Because there are enough addresses, devices normally have globally unique ones and packets keep their source and destination from end to end. Peer-to-peer applications, remote access and logging become simpler.
People often ask what protects the devices then. The answer is the same thing that should have protected them before: a stateful firewall. A typical home router allows connections you start and blocks unsolicited inbound ones. To host something, you add a firewall rule permitting traffic to that device, rather than a port-forwarding rule. Does IPv6 change your security? weighs the differences.
Remember that your rules need doing twice. A server carefully locked down for IPv4 may be wide open on IPv6 if the second rule set was never written.
The packet itself
The IPv6 header is a fixed 40 bytes, with extension headers added when needed. There is no header checksum, because link layers and transport protocols already check integrity. TTL is renamed hop limit and works the same way.
Routers don't fragment packets. Every link must support at least 1280 bytes, and senders learn about smaller paths from ICMPv6 "Packet Too Big" messages. If a firewall drops those, small requests work while large transfers stall. See MTU, MSS and fragmentation.
Commands you already know, adjusted
Linux:
ip -6 addr
ip -6 route
ip -6 neigh
ping -6 2001:db8::1 Windows:
ipconfig
netsh interface ipv6 show neighbors
route print -6
ping -6 example.com macOS:
ifconfig
netstat -rn -f inet6
ndp -an
ping6 example.com Replace documentation addresses with real ones from your network.
Running both
Most networks run dual stack: IPv4 and IPv6 side by side. Names can have both A and AAAA records, and clients usually try IPv6 first with a quick fallback to IPv4. That fallback can hide a broken IPv6 setup, so test it explicitly, as shown in checking for working IPv6. Networks that lack one protocol use tunnels or translation.
Habits to unlearn
- Don't block ICMP wholesale. ICMPv6 carries address resolution, router discovery and packet size messages.
- Don't shrink LANs below /64 to "save" addresses.
- Don't expect to memorize host addresses. Use DNS names.
- Don't treat multiple addresses as a fault.
- Don't hard-code a prefix that your provider may change; use names or unique local addresses for internal references.
- Don't assume your filters, logs and allow lists handle IPv6. Check each tool, including address fields wide enough to store it. For anti-abuse limits, counting by single address is weak, so many systems group by
/64or larger.
DNS and names
DNS needs only small adjustments. An AAAA record holds an IPv6 address, and reverse lookups live under ip6.arpa, with the address written one hexadecimal digit per label in reverse order. Generating those names by hand is tedious, so let your tooling do it. The record types are covered in A and AAAA records.
The transport used to ask a DNS question is independent of the record requested. You can ask an IPv4 resolver for an AAAA record and an IPv6 resolver for an A record. Hosts learn resolver addresses from router advertisements or DHCPv6, and a dual-stack device often has resolvers of both kinds configured. If you point your devices at a filtering resolver over IPv4 only, check that IPv6 queries aren't quietly going somewhere else.
A small worked plan
Say your provider delegates 2001:db8:abcd:ff00::/56 to your router. That leaves 8 bits for subnets, so you have 256 /64 networks. A tidy plan might be:
| Network | Prefix |
|---|---|
| Main devices | 2001:db8:abcd:ff00::/64 |
| Guest Wi-Fi | 2001:db8:abcd:ff01::/64 |
| Cameras and smart devices | 2001:db8:abcd:ff02::/64 |
| Lab | 2001:db8:abcd:ff10::/64 |
There is no host counting and no mask arithmetic. The only design question is which networks you want separated and what the firewall permits between them. The CIDR calculator is mainly an IPv4 habit; in IPv6 the useful skill is reading which hexadecimal digits you are allowed to change.
If the provider's delegation changes, every global address changes with it. Devices handle this through new router advertisements, but hand-written firewall rules and DNS entries do not update themselves. Prefer rules that refer to interfaces or networks over rules that spell out full addresses.
Where IPv4 intuition fails in troubleshooting
When something breaks, the order of checks changes slightly:
- Does the interface have a global address, or only
fe80::? Only link-local means no usable router advertisement or DHCPv6 answer arrived. - Is there a default route? It should point at a router's link-local address.
- Can you reach an external IPv6 address by number?
- Does the name resolve to an AAAA record?
- Do large transfers work as well as small ones?
A device with a global address but no working path is the troublesome case, because applications will try IPv6 first and then wait or fall back. Find the break, whether it is the router, the firewall or the provider, rather than disabling the protocol on each computer.
Common questions
Do I need to turn IPv6 on at home?
If your provider and router support it, it is usually enabled already or one setting away. It's worth keeping on, with the router firewall enabled. Disabling it to fix a problem often hides the real fault.
Is IPv6 faster?
Not inherently. It can take a different path, sometimes one that avoids a translation device, and results depend on the network. Measure rather than assume.
Can an IPv6-only host reach IPv4 sites?
Only through a translation or tunneling service in the network. Many mobile networks provide this without you noticing.