Disable ipv6

From Wasya Wiki
Revision as of 19:27, 12 June 2024 by Piousbox (Talk | contribs) (Created page with "From: https://itsfoss.com/disable-ipv6-ubuntu-linux/ <pre> You have see the sysctl command in the tutorial about restarting network in Ubuntu. We are going to use it here as...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

From: https://itsfoss.com/disable-ipv6-ubuntu-linux/

You have see the sysctl command in the tutorial about restarting network in Ubuntu. We are going to use it here as well. To disable IPv6 you only have to input 3 commands:

sudo sysctl -w net.ipv6.conf.all.disable_ipv6=1
sudo sysctl -w net.ipv6.conf.default.disable_ipv6=1
sudo sysctl -w net.ipv6.conf.lo.disable_ipv6=1
You can check if it worked using:

ip a
You should see no IPv6 entry: