How to Configure an IPv6-Only VM and Container Network Using Podman
Despite IPv6 being standardised roughly 28 years ago, many applications still rely solely on IPv4, prompting developers to test IPv6-only environments. A virtual machine can be switched to IPv6-only by first enabling IPv6 via sysctl, then reconfiguring network interfaces with nmcli before disabling IPv4 entirely. Before disabling IPv4, users must reconnect via an IPv6 SSH session to avoid losing access to the VM. For containerised workloads, Podman allows creation of an IPv6-only network by specifying an IPv6 subnet, using a private fd00::/8 address range analogous to IPv4's 192.168.x.x. A dual-stack option also exists in Podman, and its built-in DNS service supports both IPv4 and IPv6, enabling container-to-container name resolution.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in