How to turn off ubuntu's IPv6

Tuesday, Aug 24, 2021 | 1 minute read | Updated at Tuesday, Aug 24, 2021

@

Modify the /etc/sysctl.conf file and add the following

net.ipv6.conf.all.disable_ipv6=1
net.ipv6.conf.default.disable_ipv6=1
net.ipv6.conf.lo.disable_ipv6=1
Execute sysctl -p to make the settings take effect

Lazy version

echo "net.ipv6.conf.all.disable_ipv6=1 

net.ipv6.conf.default.disable_ipv6=1 

net.ipv6.conf.lo.disable_ipv6=1 

“» /etc/sysctl.conf

© 2018 - 2026 vpslala

🌱 Powered by Hugo with theme Dream.