All guides
Term

IPv6

A network layer protocol that uses 128-bit addressing to replace IPv4 and resolve the exhaustion of available IP addresses.

IPv6 (Internet Protocol version 6) is a network layer protocol that uses 128-bit addressing to replace IPv4 and resolve the global exhaustion of available IP addresses. This expanded address space provides approximately 3.4 × 1038 unique identifiers, allowing every server, container, and connected device to hold a globally routable public address. By removing the strict necessity for Network Address Translation (NAT), IPv6 restores direct end-to-end connectivity across modern cloud and bare-metal infrastructure.

How it works

IPv6 writes addresses as eight groups of four hexadecimal digits separated by colons, such as 2001:0db8:85a3:0000:0000:8a2e:0370:7334, which can be shortened by omitting leading zeros and collapsing consecutive zero blocks into a double colon (::). Routers process packets more efficiently than in IPv4 because IPv6 uses a fixed-length 40-byte header and omits the header checksum, leaving integrity checks to the link and transport layers.

Network interfaces handle address assignment and local discovery differently under IPv6:

  • Stateless Address Autoconfiguration (SLAAC): Devices generate their own globally unique addresses using router advertisements and their interface identifier, removing the strict requirement for a stateful DHCP server.
  • Neighbor Discovery Protocol (NDP): Replaces IPv4's Address Resolution Protocol (ARP) using ICMPv6 messages to resolve link-layer addresses and detect duplicate IPs.
  • Extension headers: Optional metadata such as fragmentation or routing instructions moves out of the main header into chained extension headers, keeping standard packet forwarding fast.

Example

To check active IPv6 assignments on a Linux host and configure an Nginx virtual host to accept dual-stack traffic, inspect the network interface and update your server block:

# Verify assigned global and link-local IPv6 addresses
ip -6 addr show dev eth0

# Nginx server block listening on both IPv4 and IPv6
server {
    listen 80;
    listen [::]:80;
    server_name example.com;
    root /var/www/html;
}

Enclosing :: in square brackets instructs the web server to bind to all available IPv6 interfaces on port 80 while avoiding syntax conflicts with the colon port separator.

What matters when choosing a server or hosting

When provisioning virtual machines, dedicated servers, or managed Kubernetes clusters, verify native dual-stack support rather than relying on tunneling mechanisms like 6to4, which add latency and path MTU issues. Check whether your provider routes a full /64 subnet (or larger, such as a /56 or /48) to your instance rather than a single /128 address; a routed /64 allows you to assign dedicated public IPv6 addresses to individual Docker containers, virtual machines, or microservices without internal NAT. Ensure the provider also supports custom reverse DNS (PTR records) for your IPv6 block, which is mandatory for reliable outbound mail delivery.

Common mistakes

  • Forgetting IPv6 firewall rules: Administrators often lock down iptables for IPv4 while leaving ip6tables or nftables open, exposing internal services directly to the public internet since NAT is no longer blocking inbound connections.
  • Blocking all ICMPv6 traffic: Filtering out ICMPv6 breaks Path MTU Discovery (PMTUD) and Neighbor Discovery Protocol, resulting in stalled TLS handshakes and dropped connections.
  • Publishing AAAA records before testing: Adding a DNS AAAA record before verifying that the web server, reverse proxy, and upstream firewall route IPv6 properly causes dual-stack clients to time out before falling back to IPv4.

FAQ

Does IPv6 replace IPv4 completely on modern servers?

Not yet. Most production environments run in dual-stack mode, binding services to both IPv4 and IPv6 so legacy networks and modern mobile or cloud clients can connect seamlessly.

Is IPv6 faster than IPv4?

Raw throughput is similar, though IPv6 often achieves slightly lower latency by eliminating carrier-grade NAT translation overhead and allowing more direct peering routes.

Why do IPv6 addresses still need a firewall if there is no NAT?

NAT only obscured internal hosts as a side effect of address translation; without NAT, every device with a global IPv6 address is directly reachable from the internet unless explicitly filtered by a stateful firewall.

All glossary terms

Glossary

Related terms

Full glossary

New guides every week.

A digest of the best pieces on servers, VPN and self-hosted software. No ads, no spam.

1 email a weekOne-click unsubscribeRU · EN
Only slipjar.app articles, nothing else.