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.
- 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