To disable ipv6 in centos 6, first enter ip-6 addr show and lsmod | grep ipv6 on the terminal to check whether the IPV6 module is installed or use netstat-nuptl to check whether the ipv6 address exists, if the IPV6 protocol is not disabled, follow these steps:
I. vi/etc/modprobe. d/disable-ipv6.conf (name casually) (after RHEL6.0 no/etc/modprobe. conf file) input: install ipv6/bin/true [root @ manager ~] # Cd/etc/modprobe. d/[root @ manager modprobe. d] # cat ipv6.conf install ipv6/bin/true www.2cto.com 2. Add a sentence at the end of vi/etc/sysconfig/network: IPV6INIT = no [root @ manager ~] # Cat/etc/sysconfig/networkNETWORKING = yesIPV6INIT = no 3. Disable ipv6 iptableschkconfig ip6tables off 4. Restart. Finally, enter the first two commands on the terminal to verify whether the IPV6 protocol is successfully disabled. At this time, there should be no content. Author sundful