Velvet Star Monitor

Standout celebrity highlights with iconic style.

general

Is it possible to disable ipv6 using cloud-init?

Writer Mia Lopez

I have a cluster of raspberry pi's and I am updating the os from raspian to ubuntu 20.04. I am able to configure a static ip address and name server, but I can not figure out how to disable ipv6. The cloud-init documentation states that dhcp6 is defaulted to false, but my system still shows an ipv6 address on boot. I am new to cloud-init and figuring things out as I go along. Any help would be greatly appreciated.

1

1 Answer

you could do

write_files: - path: /etc/sysctl.d/10-disable-ipv6.conf permissions: 0644 owner: root content: | net.ipv6.conf.eth0.disable_ipv6 = 1

to test it without restating:

sudo systemctl restart systemd-sysctl

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy