I have CentOS machines (both 6.x and 7.1) and whenever I reboot them, automatically IPV6 is assigned to them and IPV4 is lost.

Any idea why it is happening and how to prevent it?

I Could not get any info on this issue.
I have access to terminal only, but not the GUI.

  • How do you assign IPv4 that gets lost? – techraf Mar 14 '16 at 9:50
  • I would be better if you can show us your current eth0 config file. – Mongrel Mar 14 '16 at 10:08

download dhcpd and configure in the machine. Then try to assign static IP address.

Download dhcp using yum command in terminal. To configure - https://www.centos.org/docs/5/html/Deployment_Guide-en-US/s1-dhcp-configuring-client.html

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.