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

General support questions
Post Reply
User avatar
ben_tvpp
Posts: 62
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
Site Admin
Posts: 33202
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 ?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

User avatar
ben_tvpp
Posts: 62
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
Site Admin
Posts: 33202
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...
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

lightman47
Posts: 1521
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

tunk
Posts: 1205
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
Site Admin
Posts: 33202
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.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

User avatar
ben_tvpp
Posts: 62
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: 1521
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:

Post Reply