How to disable IPV6 on centos 6.x

The following procedure worked for me.

1. Add the following lines in the files listed below:

% vi /etc/modprobe.d/modprobe.conf

options ipv6 disable=1
alias net-pf-10 off
alias ipv6 off
install ipv6 /bin/true

% vi /etc/sysconfig/network

NETWORKING_IPV6=no
IPV6INIT=no


% vi /etc/sysconfig/network-scripts/ifcfg-ethx (x=0, 1, 2 …)

IPV6INIT=no



2. Disable ip6tables service

chkconfig ip6tables off



3. Reboot your system

init 6 or reboot

---

There is a step 4 at the website which mentions to rmmod ivp6, but I didn't need to do that.


Referenced:
http://mikent.wordpress.com/2012/02/04/how-to-disable-ipv6-on-redhat-6-x/

Last modified onSunday, 14 October 2012 04:07

( ! ) Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php on line 169
Call Stack
#TimeMemoryFunctionLocation
10.0009412216{main}( ).../index.php:0
20.08914262136Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.08914262136Joomla\CMS\Application\SiteApplication->doExecute( ).../CMSApplication.php:196
40.305611452992Joomla\CMS\Application\SiteApplication->dispatch( ).../SiteApplication.php:233
50.306311477304Joomla\CMS\Component\ComponentHelper::renderComponent( ).../SiteApplication.php:194
60.307311532632Joomla\CMS\Component\ComponentHelper::executeComponent( ).../ComponentHelper.php:377
70.307611560032require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ).../ComponentHelper.php:402
80.316911959664K2ControllerItem->execute( ).../k2.php:64
90.316911959664K2ControllerItem->display( ).../BaseController.php:710
100.326912610368K2ControllerItem->display( ).../item.php:78
110.326912610368K2ControllerItem->display( ).../controller.php:19
120.331412981408Joomla\CMS\Cache\Controller\ViewController->get( ).../BaseController.php:663
130.333013001776K2ViewItem->display( ).../ViewController.php:102
140.400015811776K2ViewItem->display( ).../view.html.php:742
150.400015811776K2ViewItem->loadTemplate( ).../HtmlView.php:230
160.401815984712include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ).../HtmlView.php:701

( ! ) Notice: Only variables should be assigned by reference in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php on line 478
Call Stack
#TimeMemoryFunctionLocation
10.0009412216{main}( ).../index.php:0
20.08914262136Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.08914262136Joomla\CMS\Application\SiteApplication->doExecute( ).../CMSApplication.php:196
40.305611452992Joomla\CMS\Application\SiteApplication->dispatch( ).../SiteApplication.php:233
50.306311477304Joomla\CMS\Component\ComponentHelper::renderComponent( ).../SiteApplication.php:194
60.307311532632Joomla\CMS\Component\ComponentHelper::executeComponent( ).../ComponentHelper.php:377
70.307611560032require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ).../ComponentHelper.php:402
80.316911959664K2ControllerItem->execute( ).../k2.php:64
90.316911959664K2ControllerItem->display( ).../BaseController.php:710
100.326912610368K2ControllerItem->display( ).../item.php:78
110.326912610368K2ControllerItem->display( ).../controller.php:19
120.331412981408Joomla\CMS\Cache\Controller\ViewController->get( ).../BaseController.php:663
130.333013001776K2ViewItem->display( ).../ViewController.php:102
140.400015811776K2ViewItem->display( ).../view.html.php:742
150.400015811776K2ViewItem->loadTemplate( ).../HtmlView.php:230
160.401815984712include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ).../HtmlView.php:701
back to top