Short answer
An IPv6 subnet is a block of IPv6 addresses that share a common prefix. Its size is written as the prefix length after the address: in 2001:db8:abcd:12::/64 the first 64 bits identify the network and the remaining 64 bits identify interfaces on it. On servers the two sizes you meet most often are /64 and /48.
With IPv4 a server usually gets one or a few addresses. A single IPv6 /64 already holds 2^64 addresses, so the real work is planning how to split and manage the block, not counting addresses.
Why IPv6?
IPv4 addresses are scarce; many networks rely on NAT and shared addressing. IPv6 provides a much larger space and is designed for end-to-end addressability.
On servers, IPv6 simplifies planning for workloads that need many addresses, such as proxy fleets, hosting panels or service separation. You can give each service, customer or container its own address without NAT or renting extra IPs.
How to read an IPv6 address
An IPv6 address is 128 bits long and is written as eight groups of four hexadecimal digits separated by colons. Two rules shorten the long form (RFC 5952):
- Leading zeros in each group are dropped: 2001:0db8:0000:0012:0000:0000:0000:0010 becomes 2001:db8:0:12:0:0:0:10.
- A run of consecutive zero groups is replaced by “::”, which can appear only once per address: 2001:db8:0:12::10.
- The 2001:db8::/32 addresses in this article are reserved for documentation (RFC 3849). On your own server, use the prefix your provider assigns.
Subnets and prefixes
An IPv6 address combines a network prefix and an interface identifier. The prefix length tells you how many of the 128 bits define the network. A larger number means a smaller block: a /48 is 65,536 times the size of a /64.
- /64: the standard size for a single network segment. Stateless address autoconfiguration (SLAAC) expects a /64; the block holds 2^64 addresses.
- /56: 256 /64 subnets. Some providers assign this size to small networks.
- /48: 65,536 /64 subnets. Used when you need several segments or want to separate customers or services.
- /127 and /128: for point-to-point links (RFC 6164) and single-address assignments.
- The block size assigned to you depends on your plan and the provider’s network.
How do you split a /48 into /64 subnets?
In a /48 the first three groups are fixed and the fourth group is the subnet number. Take 2001:db8:abcd::/48 as an example:
- 2001:db8:abcd:0::/64: the first subnet
- 2001:db8:abcd:1::/64, 2001:db8:abcd:2::/64 and so on: the next subnets
- 2001:db8:abcd:ffff::/64: the 65,536th and last subnet
How do you plan subnets?
Tying the numbering to a rule from the start saves confusion later. For example, use the first digit of the fourth group for the environment (1xxx production, 2xxx testing) and the remaining digits for a service or customer number. Anyone who sees 2001:db8:abcd:1005::/64 then knows it is service 5 in production.
Avoid splitting segments into pieces smaller than a /64. SLAAC and some network tools assume a /64 (RFC 7421); smaller pieces are for special cases such as point-to-point links. Keep the plan in a table: subnet, purpose, owner and date.
How do you add and test an IPv6 address on a server?
On Linux, addresses are managed with the ip command. An address added with the commands below disappears after a reboot. Persistent configuration depends on the distribution: Netplan on Ubuntu, /etc/network/interfaces on Debian and NetworkManager on RHEL-based systems.
- Show current addresses and the default route: ip -6 addr show and ip -6 route show
- Add an address from your block: sudo ip -6 addr add 2001:db8:abcd:12::10/64 dev eth0 (your interface may be named ens3, enp1s0 or similar)
- Test outbound connectivity: ping -6 -c 3 ipv6.google.com
- Check that a service listens on IPv6: look for [::] or your own IPv6 address in the output of ss -tlnp
How is the block delivered to the server?
Before ordering or at handover, ask your provider how the block is delivered. If it is routed to your server’s address, you can use every address in it directly and split it into subnets. If it is on-link, in the same network segment as the server, the server has to answer Neighbor Discovery (NDP) requests for every address you use.
The difference matters when you plan to use many addresses. Choose your configuration based on how the block is delivered.
Dual-stack (IPv4 + IPv6)
Most production environments still serve IPv4 clients. Dual-stack means the same service is reachable over both IPv4 and IPv6. In DNS, the A record points to the IPv4 address and the AAAA record to the IPv6 address; a client that supports both usually tries IPv6 first and falls back to IPv4.
Clients without IPv6 connectivity cannot reach a service that is published on IPv6 only. For public websites and APIs, enabling both protocols is the safer starting point.
Security and operations notes
Define firewall rules for IPv6 as well; locking down only IPv4 is not enough. The ufw and ip6tables setup is covered in “How to secure a new VDS: first security steps”.
Do not block ICMPv6 entirely. Neighbor Discovery and path MTU discovery in IPv6 run on ICMPv6 messages, and dropping all of them causes connectivity problems. RFC 4890 lists which messages should be allowed.
Clarify reverse DNS (ip6.arpa) and the acceptable-use policy with your provider. Reverse DNS matters most on servers that send email. This article is educational; verify your specific topology with your team.
WeServer IPv6 Subnet VDS
WeServer’s IPv6 Subnet VDS plans use the same CPU, RAM and disk options as Turkey VDS, and every plan includes 1 IPv4 address, so a dual-stack setup is ready from the start. The first three plans come with a /64; larger plans get a /48 or /64 IPv6 subnet. See the IPv6 Subnet VDS page for plan details.
Frequently asked questions
How many IPv6 addresses are in a /64? 2^64, which is 18,446,744,073,709,551,616 addresses. In practice the address count is never the limit; your service and management plan is.
What is the difference between a /48 and a /64? A /48 contains 65,536 /64 subnets. If one segment is enough, a /64 will do. If you want separate subnets for services, customers or environments, a /48 gives you room.
Can I split a /64 into smaller subnets? Technically yes, but because SLAAC and some network tools assume a /64, segments should stay at /64. A /127 on point-to-point links is the common exception.
Is running a server on IPv6 only enough? Some clients still use IPv4 only, so dual-stack is the safer choice for public services. Internal services and server-to-server traffic can run on IPv6 only.
