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

General support questions
Post Reply
ben_tvpp
Posts: 29
Joined: 2018/12/04 13:28:51

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

Post by ben_tvpp » 2018/12/05 13:37:32

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
Last edited by ben_tvpp on 2018/12/05 13:54:47, edited 1 time in total.

User avatar
TrevorH
Forum Moderator
Posts: 27127
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

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

Post by TrevorH » 2018/12/05 13:54:24

What is the output from grep ONBOOT /etc/sysconfig/network-scripts/ifcfg-eth0 ?
CentOS 6 will die in November 2020 - migrate sooner rather than later!
CentOS 5 has been EOL for nearly 3 years and should no longer be used for anything!
Full time Geek, part time moderator. Use the FAQ Luke

ben_tvpp
Posts: 29
Joined: 2018/12/04 13:28:51

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

Post by ben_tvpp » 2018/12/05 16:39:31

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

User avatar
TrevorH
Forum Moderator
Posts: 27127
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

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

Post by TrevorH » 2018/12/05 17:12:40

As I see you discovered from another thread, ONBOOT=no is the problem. It's part of the CentOS FAQ...
CentOS 6 will die in November 2020 - migrate sooner rather than later!
CentOS 5 has been EOL for nearly 3 years and should no longer be used for anything!
Full time Geek, part time moderator. Use the FAQ Luke

lightman47
Posts: 999
Joined: 2014/05/21 20:16:00
Location: Central New York, USA

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

Post by lightman47 » 2018/12/05 20:11:28

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
Multple login IDs are not your friend when asking for help!

tunk
Posts: 619
Joined: 2017/02/22 15:08:17

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

Post by tunk » 2018/12/06 12:38:25

What's your NIC, and can you check if the corresponding module is loaded?

User avatar
TrevorH
Forum Moderator
Posts: 27127
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

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

Post by TrevorH » 2018/12/06 16:24:37

From another thread: he got it working. This one is dead.
CentOS 6 will die in November 2020 - migrate sooner rather than later!
CentOS 5 has been EOL for nearly 3 years and should no longer be used for anything!
Full time Geek, part time moderator. Use the FAQ Luke

ben_tvpp
Posts: 29
Joined: 2018/12/04 13:28:51

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

Post by ben_tvpp » 2018/12/06 18:23:13

Sorry, posted to wrong thread.

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

Ben

lightman47
Posts: 999
Joined: 2014/05/21 20:16:00
Location: Central New York, USA

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

Post by lightman47 » 2018/12/06 19:10:02

POOP! I totally didn't 'connect' the network service comment and the NM_CONTROLLED. :oops:
Multple login IDs are not your friend when asking for help!

Post Reply

Return to “CentOS 6 - General Support”