Disclosure up front: I run IPYE, a company that leases IP space. This is a practical how-to, and IPYE comes up where it helps, with a short call to action at the end.
Ceph can run entirely over IPv6, but it binds to one address family at a time, and a cluster that gets the setting wrong has monitors that never reach quorum. This guide deploys a small cephadm-managed cluster with its public and cluster networks carved from a free IPv6 /48 from IPYE. The examples use the documentation prefix 2001:db8:100::/48, with the public network 2001:db8:100:f0::/64, the replication network 2001:db8:100:f1::/64 and three hosts at ::11, ::12 and ::13 in each.
Plan the networks
- Public network: clients, monitors, managers and the front side of the OSDs.
- Cluster network (optional): replication and recovery traffic between OSDs. Put it on separate links if you have them. If you don't, leave it out rather than sharing one link under two names.
A /64 per network is standard. Use static addresses, because Ceph records monitor addresses in the monmap, and a monitor whose address changes falls out of quorum.
Bootstrap with an IPv6 monitor address
cephadm bootstrap \ --mon-ip 2001:db8:100:f0::11 \ --cluster-network 2001:db8:100:f1::/64 When --mon-ip is an IPv6 address, cephadm sets ms_bind_ipv6 = true and ms_bind_ipv4 = false, and derives the public network from the interface that holds the address. Check:
ceph config get mon ms_bind_ipv6 ceph config get mon public_network ceph mon dump The monmap shows addresses as [v2:[2001:db8:100:f0::11]:3300/0,v1:[2001:db8:100:f0::11]:6789/0]. Port 3300 is messenger v2 and 6789 is the legacy v1 protocol.
Add hosts
Copy the cluster's SSH key to each host, then add them by IPv6 address:
ssh-copy-id -f -i /etc/ceph/ceph.pub root@2001:db8:100:f0::12 ceph orch host add node2 2001:db8:100:f0::12 ceph orch host add node3 2001:db8:100:f0::13 ceph orch apply mon --placement="node1,node2,node3" ceph orch apply osd --all-available-devices Within a minute or two, ceph -s should show three monitors in quorum and the OSDs coming up.
Dual-stack is not supported for daemons
Ceph daemons bind to IPv4 or IPv6, not both. Don't set ms_bind_ipv4 and ms_bind_ipv6 to true together. If IPv4-only clients need access, put a gateway in front: RGW behind a dual-stack load balancer for S3, or NFS-Ganesha for file access.
Firewall
Between Ceph hosts and from clients on the public network:
ip6 saddr 2001:db8:100:f0::/64 tcp dport { 3300, 6789, 6800-7300 } accept ip6 saddr 2001:db8:100:f1::/64 tcp dport 6800-7300 accept OSDs and managers use the 6800 to 7300 range. The cluster network should never be reachable from outside.
Clients
A client's ceph.conf lists the monitors in bracketed form:
[global] mon_host = [v2:[2001:db8:100:f0::11]:3300,v1:[2001:db8:100:f0::11]:6789] [v2:[2001:db8:100:f0::12]:3300] ms_bind_ipv6 = true ms_bind_ipv4 = false Generate it with ceph config generate-minimal-conf rather than writing it by hand. Kernel RBD and CephFS clients accept the same address format.
Health checks after changes
ceph health detail ceph osd dump | grep -E '^osd\.[0-9]+' | head Each OSD line shows its public and cluster addresses. If a cluster address is missing or in the wrong /64, check cluster_network and restart that OSD.
Why globally unique addresses help storage
Storage clusters grow across racks and sites. If every node has a unique, routable address from a prefix you control, you can expand without renumbering or setting up NAT. IPYE's free /48 provides that prefix, with a LOA and an automatically created ROA if you also announce it.
Next step
Claim the free /48 in the IPYE portal, assign one /64 to the public network and another to replication, and bootstrap with an IPv6 --mon-ip.
About IPYE
IPYE leases IPv4, IPv6 and ASN space with instant setup. Your first IPv6 /48 is free for the first year, a real allocation you can announce on your own ASN, with a LOA from the portal and the ROA created automatically. IPv4 /24 to /22 leases include LOA, ROA and per-/24 rDNS, and ASN and region changes apply automatically. Locations: Los Angeles, New York, Ashburn, Salt Lake City, London, Amsterdam, Frankfurt. More at ipye.com. Questions: ipye@turnel.com.
Disclosure: I run IPYE