1

I am using CentOS 6.7.

What's the purpose of /etc/sysconfig/network file?

I have found that the first thing /etc/init.d/network does is checking if that file exists and exit if it is not founded.

My CentOS 6.7 didn't have that file by default. Why?

2
  • are you using centos 6.7 in your desktop with dhcp? – c4f4t0r Sep 17 '15 at 15:23
  • @c4f4t0r yes. I am trying to config DHCP with ONBOOT=yes, but it doesn't work. – Yishu Fang Sep 17 '15 at 15:25
3

The only thing you really need it for is setting the hostname. Otherwise, you can add some network and gateway settings, but you can just as easily put that stuff in the /etc/sysconfig/network-scripts/ifcfg-ethX files.

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.