Saturday 6 August 2016

Disabling ipv6 in RHEL 7

Simply we have only one step for temporary disable ipv6 and 3 steps for permanant disable.

Now we are going to see how to do that.

  1. Temporary Disabling

Below i have given simple command that disable the ipv6.

sh -c 'echo 1 > /proc/sys/net/ipv6/conf/all/disable_ipv6' 

    
      2. Permanent Disabling
 
We need to open the grub file with our favorite editor add the following details in that.

vi /etc/default/grub

add the below line to that file.

GRUB_CMDLINE_LINUX="ipv6.disable=1"

and save.

finally provide the following command that will do the magic.

grub2-mkconfig -o /boot/grub2/grub.cfg 

then reboot.

Enjoy.....

No comments:

Post a Comment

Permanent hostname setup for RHEL7

Step 1 Set the host name on NMTUI tool like following nmtui set host name   then save and exit Step 2 add the following l...