Disabling ipv6 functionality

IPv6 still couldn't find any role in industry. So, it is good to completely disable this functionality in kernel. You can do this with building a custom kerne. But, most of the systems uses generic kernels which comes with the distribution itself. In order to disable ipv6 support, create a new file named 000-local under /etc/modprobe.d directory and puts following two lines:

alias net-pf-10 off
alias ipv6 off

After that, restart your system and ipv6 just gone away.

 

NOTE: If you have a distribution that ipv6 support compiled into main kernel not built as module you still disable ipv6 through proc interface, or adding following line into /etc/sysctl.conf:

net.ipv6.conf.all.disable_ipv6 = 1

 







You must be login first or sign-up for an account to post comments.