---
title: "IPv4 vs IPv6: what changes when you run servers · CloudSat"
description: "IPv4 vs IPv6 for server admins: address format and types, why NAT goes away, ICMPv6, several addresses per interface, prefix-based rules and reverse DNS."
url: https://cloudsat.io/learn/ipv4-vs-ipv6-for-server-admins
updated: 2026-11-18T12:00:00Z
source: CloudSat (https://cloudsat.io/). Prices in USD.
---

[Networking](https://cloudsat.io/learn/topic/networking-and-dns)

# IPv4 vs IPv6: what changes when you run servers

IPv4 vs IPv6 for server admins: address format and types, why NAT goes away, ICMPv6, several addresses per interface, prefix-based rules and reverse DNS.

CloudSat team November 18, 2026 6 min read

The headline difference is size: an IPv4 address has 32 bits, an IPv6 address 128. For anyone running servers, the consequences matter more than the number. NAT stops being necessary, every interface carries several addresses, ICMP becomes something you must not block, and firewall rules and rate limits have to think in prefixes rather than single addresses. IPv4 is not going away any time soon, so most servers run both, and every rule and record exists twice.

## Side by side

|  | IPv4 | IPv6 |
| --- | --- | --- |
| Address size | 32 bits, `203.0.113.10` | 128 bits, `2001:db8:10:20::2` |
| What a server usually gets | One address | One address, a /64, or more |
| NAT | Everywhere, because addresses are scarce | Not needed: every device can have a global address |
| Finding neighbors on the link | ARP | Neighbor Discovery, carried in ICMPv6 |
| Automatic configuration | DHCP | SLAAC from router advertisements, or DHCPv6 |
| Fragmentation | Routers may fragment packets | Only the sender fragments, so path MTU discovery must work |
| Broadcast | Yes | No; multicast replaces it |
| Reverse DNS zone | `in-addr.arpa` | `ip6.arpa` |

## Reading and writing IPv6 addresses

An IPv6 address is eight groups of four hexadecimal digits. Two shortening rules apply: leading zeros in a group may be dropped, and one run of all-zero groups may be replaced by `::`. So `2001:0db8:0000:0000:0000:0000:0000:0001` is written `2001:db8::1`. Use lowercase, as the standard text format recommends, and shorten the same way everywhere, so addresses in logs, configs and DNS can be compared with a plain search.

Colons clash with port numbers, so URLs and some tools need brackets:

```bash
curl -I "http://[2001:db8:10:20::2]:8080/"
scp backup.tar.gz "admin@[2001:db8:10:20::2]:/srv/backups/"
```

The ranges you will meet:

| Prefix | Type | IPv4 counterpart |
| --- | --- | --- |
| `::1` | Loopback | `127.0.0.1` |
| `fe80::/10` | Link-local, present on every interface | `169.254.0.0/16` |
| `fc00::/7` (in practice `fd00::/8`) | Unique local, private | `10.0.0.0/8` and other private ranges |
| `2000::/3` | Global unicast, the public internet | Public addresses |
| `ff00::/8` | Multicast | `224.0.0.0/4` |

## No NAT means the firewall does all the work

On IPv4, NAT hid home and office devices as a side effect: nothing could reach them unless a port was forwarded. IPv6 removes that accident. Devices have globally routable addresses, and only the firewall decides what reaches them.

On servers, the common failure is lopsided policy. The IPv4 rules are tight, while the IPv6 table was never written, so every service bound to all addresses is reachable over IPv6. A listener shown as `[::]:5432` by `ss -tlnp` accepts IPv6 connections, and on Linux usually IPv4 ones too. After writing rules, test from an outside machine over both protocols. A provider firewall in front of the server needs the same attention: its rules must cover IPv6 sources as well.

## ICMPv6 is part of the plumbing

Blocking all ICMP was always questionable on IPv4. On IPv6 it breaks the network. Neighbor Discovery, the replacement for ARP, runs over ICMPv6, and so do the "Packet Too Big" messages that path MTU discovery depends on, which matter more because routers no longer fragment packets. Symptoms of over-filtering are subtle: small requests work, large downloads hang.

Allow at least the error messages (types 1 to 4, including Packet Too Big) and the Neighbor Discovery types 133 to 136 on the local link. Echo requests can be allowed with a rate limit. RFC 4890 lists recommendations type by type, and the default rules of UFW and firewalld already follow this pattern.

## One interface, several addresses

An IPv6 interface always has a link-local `fe80::` address, plus one or more global addresses: a static one, one built from router advertisements, and on desktops temporary privacy addresses that change regularly. The kernel picks a source address for each outgoing connection by fixed rules, which can surprise you when a remote allowlist or a mail server expects one specific address.

Two practical habits help. Give servers one static global address for services and DNS, and disable automatic addresses where you do not want them. And when a remote system must allow your server, register the exact address the server uses for outgoing traffic, or the whole prefix.

## Think in prefixes, not addresses

A single customer of any network usually gets at least a /64, which is 18 quintillion addresses. Anyone who controls a /64 can use a new address for every request. That changes three things:

- **Rate limits and bans keyed on single addresses are weak.** Where your tools support it, group IPv6 clients by /64 before counting.
- **Allowlists should name prefixes.** Allowing your office's prefix, often a /48 or /56, survives devices switching to new privacy addresses; allowing one address does not.
- **Blind scanning gets impractical.** Nobody can sweep a /64 address by address, so servers are found through DNS names, logs and published records instead. That reduces noise, but it does not hide a server that has a public name.

The math behind prefix sizes is in the [CIDR cheat sheet](https://cloudsat.io/learn/cidr-notation-subnet-cheat-sheet).

## DNS in a dual-stack world

An `AAAA` record publishes the IPv6 address next to the `A` record. Modern clients use Happy Eyeballs (RFC 8305): they try IPv6 and IPv4 almost in parallel, prefer whichever connects first, and fall back quickly. That makes a broken IPv6 path a slowdown rather than an outage for browsers, while some older software still waits for a full timeout. Publish an `AAAA` record only for addresses that really serve the site, as described in [point a domain to your server](https://cloudsat.io/learn/point-a-domain-to-your-server).

Reverse DNS works the same way but in `ip6.arpa`, written as every hex digit of the address reversed. It matters most for mail: large mailbox providers expect sending servers to have matching forward and reverse DNS on whichever protocol they use. On CloudSat, the console form sets reverse DNS for a server's IPv4, and an IPv6 PTR record is set through a support ticket, as described in [Set reverse DNS for your IPv4](https://cloudsat.io/docs/reverse-dns).

## Will IPv4 disappear?

Not on a timeline anyone can promise. IPv4 addresses are scarce and trade on a secondary market, which keeps them a cost for every provider, while IPv6 adoption keeps growing unevenly from country to country and network to network. Some mobile networks already run IPv6-only internally and reach IPv4 sites through translation (NAT64 and DNS64). For a server, the practical answer is dual stack: answer on both, and firewall both. CloudSat gives each server a dedicated IPv4 address plus IPv6 ([IPv6-ready VPS](https://cloudsat.io/ipv6-ready-vps)), so you can run dual stack from day one.

## FAQ

### Is IPv6 more secure than IPv4?

Not by itself. IPsec support was once required for IPv6 implementations, but using it was never automatic, and later standards relaxed the requirement. The firewall policy, patching and exposure of services decide security on both protocols.

### Is IPv6 subnetting harder?

It is simpler in practice. A LAN or server segment is almost always a /64, and sites receive a /48 or /56 to divide into /64s. There is no squeezing hosts into tiny ranges as with IPv4.

### Should I disable IPv6 on servers I run IPv4-only?

Firewall it instead of disabling it, unless something actually breaks. Some software expects the IPv6 loopback, and a firewalled IPv6 stack exposes nothing. The configuration side is covered in [configure IPv6 on Ubuntu Server with Netplan](https://cloudsat.io/learn/configure-ipv6-on-ubuntu-with-netplan).

**Run it on CloudSat.** Cloud VPS on AMD EPYC and NVMe from $1.98/mo in 13 regions, delivered in under 5 minutes and paid in crypto. [See plans](https://cloudsat.io/plans) or [deploy a server](https://dash.cloudsat.io/console/deploy).

## Keep reading

[All guides in Networking](https://cloudsat.io/learn/topic/networking-and-dns)

- [Configure IPv6 on Ubuntu Server with Netplan](https://cloudsat.io/learn/configure-ipv6-on-ubuntu-with-netplan): Networking Configure IPv6 on Ubuntu Server with Netplan 7 min read
- [CIDR notation cheat sheet: IPv4 prefixes, hosts and IPv6](https://cloudsat.io/learn/cidr-notation-subnet-cheat-sheet): Networking CIDR notation cheat sheet: IPv4 prefixes, hosts and IPv6 6 min read
- [Point a domain to your server with A and AAAA records](https://cloudsat.io/learn/point-a-domain-to-your-server): Networking Point a domain to your server with A and AAAA records 6 min read
- [Cloud networking explained: VPCs, subnets, gateways and CDNs](https://cloudsat.io/learn/cloud-networking-building-blocks): Networking Cloud networking explained: VPCs, subnets, gateways and CDNs 7 min read
