Jump to content


* * * * * 1 votes

Disable ipv6 Centos 6


  • Please log in to reply
No replies to this topic

#1 BoSS

BoSS

    Advanced Member

  • Members
  • PipPipPip
  • 108 posts

Posted 30 May 2016 - 12:05 PM

To disable ipv6 in Centos 6 / 6.2 / 6.5 follow the below tutorial :

 

Proper way of disabling IPv6 subsytem in RedHat Linux 6 / CentOS 6 (dont unload modules or so)

in /etc/sysctl.conf  :  net.ipv6.conf.all.disable_ipv6 = 1
in /etc/sysconfig/network  : NETWORKING_IPV6=no
in /etc/sysconfig/network-scripts/ifcfg-eth0 : IPV6INIT=”no”
disable iptables6 – chkconfig –level 345 ip6tables off
reboot

or use the below method :

echo “net.ipv6.conf.default.disable_ipv6=1″ >> /etc/sysctl.conf
echo “net.ipv6.conf.all.disable_ipv6 = 1″ >> /etc/sysctl.conf
echo “net.ipv6.conf.all.disable_ipv6=1” >> /etc/sysctl.conf ; cat /etc/sysctl.conf ; reboot.
sysctl -p





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users