Hi everyone,
I’m currently facing an issue with disabling IPv6 on a VM using Cloud-init. For this particular machine, I didn’t configure any IPv6 settings in Cloud-init (left it as static but empty). Despite having net.ipv6.conf.all.disable_ipv6 = 1 set in sysctl.conf, the VM still gets an IPv6 address assigned to eth0 after a reboot.
From what I understand, Cloud-init seems to apply configurations after sysctl.conf, which might be why IPv6 gets re-enabled.
Has anyone experienced this issue or found a more permanent fix?
Thanks in advance!
I’m currently facing an issue with disabling IPv6 on a VM using Cloud-init. For this particular machine, I didn’t configure any IPv6 settings in Cloud-init (left it as static but empty). Despite having net.ipv6.conf.all.disable_ipv6 = 1 set in sysctl.conf, the VM still gets an IPv6 address assigned to eth0 after a reboot.
From what I understand, Cloud-init seems to apply configurations after sysctl.conf, which might be why IPv6 gets re-enabled.
Has anyone experienced this issue or found a more permanent fix?
Thanks in advance!