How do I disable IPv6 on Debian/Ubuntu?

Disable IPv6 on all interfaces in the kernel with:

# sysctl net.ipv6.conf.all.disable_ipv6=1

Save the setting so that it stays disabled at the next boot:

# echo net.ipv6.conf.all.disable_ipv6=1 > /etc/sysctl.d/60-no_ipv6.conf

Share: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Twitter
  • Facebook
  • Google Bookmarks
  • LinkedIn
  • Reddit
  • StumbleUpon

Leave a Reply

Your email address will not be published. Required fields are marked *