Prohibited ipv6 module on centos

Follow the steps below to disable the ipv6 module:

#chkconfig ip6tables off

#vim /etc/modprobe.d/dist.conf

The last to join, pay attention to the format
alias net-pf-10 off
options ipv6 disable = 1

#vim / etc / hosts

# :: 1 localhost localhost6 localhost6.localdomain6

The final restart to take effect

Then look no ipv6 is not

#lsmod | grep ipv6 show nothing to explain disabled

The following two can not do:

#vim / etc / sysconfig / network-script / ifcfg-eth0

IPV6INIT = no add items

#vim / etc / sysconfig / network

NETWORKING_IPV6 = no add items

Leave a Reply

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