Showing posts with label How to Enable/Disable IPv6 in Linux Machine?. Show all posts
Showing posts with label How to Enable/Disable IPv6 in Linux Machine?. Show all posts

Monday, 30 July 2012

How to Enable/Disable IPv6 in Linux Machine?



Enable IPV6 : 
Step 1:
                 Add the below entry in the modprobe.conf file
      # vi /etc/modprobe.conf
      alias net-pf-10 ipv6

Note : Remove if any entry like “alias net-pf-10 off or alias ipv6 off or options ipv6 disable=1” in the modprobe.conf file.

Step 2:
                 Change the “ NETWORKING_IPV6” parameter value to yes in the network file.
      # vi /etc/sysconfig/network
      NETWORKING_IPV6=yes

Step 3:
                 Restart the server to enable the IPV6 support
            # shutdown -r now

Disable IPV6:
Step 1: 
           Add the below line in the modprobe.conf file
            # vi /etc/modprobe.conf
            alias net-pf-10 off
            alias ipv6 off                   
            options ipv6 disable=1    

Note : If any entry available like “alias net-pf-10 ipv6”, delete that entry.
             Step 2:     
                 Also add the below entry in the network file to prevent error
            # vi /etc/sysconfig/network
            NETWORKING_IPV6=no 
Step 3:        
                             Reboot the server to disable the IPV6
      # shutdown -r now