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

1 comment:

  1. Hence, our Linux Training courses provide delegates with the skills needed to work proactively in a Linux environment. Our training courses enable staff at all levels to appreciate Linux and the adaptable features that are accessible, to help enhance efficiency. While developing knowledge of the connection between OS and business improvement, this course is designed for system administrators, developers, architects, decision makers, and new yearning Linux users.
    For More Info: Linux Course in Gurgaon

    ReplyDelete