Page 1 of 1

clean install creates ifcfg-eth0 but 'service network restart' ignores it

Posted: 2018/12/05 13:37:32
by ben_tvpp
Think the subject covers it all. ifcfg-eth0 is there but when I do service 'network restart' it starts loopback but that is all, it does not even try eth0.

This is driving me nuts. Ive now installed CentOS around 7 times and had no luck. The reason i am using 6.10 is it has to match a production server. I used the minimal install ISO.

The liveDVD works fine (it can access websites through Firefox).

Ben

Re: clean install creates ifcfg-eth0 but 'service network restart' ignores it

Posted: 2018/12/05 13:54:24
by TrevorH
What is the output from grep ONBOOT /etc/sysconfig/network-scripts/ifcfg-eth0 ?

Re: clean install creates ifcfg-eth0 but 'service network restart' ignores it

Posted: 2018/12/05 16:39:31
by ben_tvpp
ONBOOT=no

In other thisng is MM_CONTROLED=yes, which seems wrong but changing this does not work.

I also tried doing a full desktop install, which worked (using 'install to hard drive' from liveDVD) but when I used yum to uninstall Desktop components it stooped working. I suspect it was using NetworkManager and works with this but without it there is something wrong.

Ben

Re: clean install creates ifcfg-eth0 but 'service network restart' ignores it

Posted: 2018/12/05 17:12:40
by TrevorH
As I see you discovered from another thread, ONBOOT=no is the problem. It's part of the CentOS FAQ...

Re: clean install creates ifcfg-eth0 but 'service network restart' ignores it

Posted: 2018/12/05 20:11:28
by lightman47
when you changed it to 'yes' did you reboot or at least start the device with 'ifup eth0' as root?

- after that, out of ideas

Re: clean install creates ifcfg-eth0 but 'service network restart' ignores it

Posted: 2018/12/06 12:38:25
by tunk
What's your NIC, and can you check if the corresponding module is loaded?

Re: clean install creates ifcfg-eth0 but 'service network restart' ignores it

Posted: 2018/12/06 16:24:37
by TrevorH
From another thread: he got it working. This one is dead.

Re: clean install creates ifcfg-eth0 but 'service network restart' ignores it

Posted: 2018/12/06 18:23:13
by ben_tvpp
Sorry, posted to wrong thread.

"Got it working, ONBOOT=yes, MM_CONTROLED=no"

Ben

Re: clean install creates ifcfg-eth0 but 'service network restart' ignores it

Posted: 2018/12/06 19:10:02
by lightman47
POOP! I totally didn't 'connect' the network service comment and the NM_CONTROLLED. :oops: