rajeshkumar created the topic: Disable IPv6 and Enable IPv4 in Red Hat Linux
Disable IPv6 and Enable IPv4 in Red Hat Linux
check “disable_ipv6″ file to check if IPv6 is disabled,enter:
[root@devops ~]# cat /proc/sys/net/ipv6/conf/all/disable_ipv6
if you get “0” value, it means that IPv6 is enabled and “1” means it is disabled.
How to Disable IPv6 in linux system?
Adding the below lines into that file:
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
Save and close that file, then restart sysctl with the following command:
[root@devops ~]# sysctl -p
Now you can rerun the “ifconfig” command to check if IPv6 lines have been removed.
To Enabled IPv4
Edit “/etc/sysconfig/network-scripts/ifcfg-eth0″ file, which is your defualt first NIC configuration file.
If you are using DHCP server to take IP then, edit it like this;
Save & restart networking service,
#service network restart OR
Twitt me @ twitter.com/RajeshKumarIn
- Use of runtime variables to save into another variable using register in Ansible - September 6, 2018
- Ansible & Ansible Tower Variable Precedence Hierarchy - September 6, 2018
- How to use template in Ansible? - September 6, 2018