Disable IPv6 on Proxmox VE¶
Proxmox VE works with or without IPv6 and recommends keeping the default network configuration. Disable IPv6 only when the network design requires it.
Warning
Check the node, cluster, storage and management configuration first. Disabling a protocol that is already in use can disconnect the host or break services.
Create the sysctl Configuration¶
The current Proxmox documentation recommends a sysctl file instead of disabling IPv6 through the kernel command line.
Create the file:
nano /etc/sysctl.d/disable-ipv6.conf
Add:
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
Save the file and load the settings:
sysctl --system
Verify the Result¶
sysctl net.ipv6.conf.all.disable_ipv6
sysctl net.ipv6.conf.default.disable_ipv6
Both values should be 1.
Check the host addresses:
ip -6 address show
Reboot the node during a maintenance window, then run the verification commands again to confirm that the settings persist.
Re-enable IPv6¶
Remove the custom file and reboot:
rm /etc/sysctl.d/disable-ipv6.conf
reboot
After the reboot, verify that both disable_ipv6 values returned to 0.