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

Helm installation on rhel 9

 You can do install with 2 commands  first one is curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-hel...