clean install creates ifcfg-eth0 but 'service network restart' ignores it
clean install creates ifcfg-eth0 but 'service network restart' ignores it
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
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.
Re: clean install creates ifcfg-eth0 but 'service network restart' ignores it
What is the output from grep ONBOOT /etc/sysconfig/network-scripts/ifcfg-eth0 ?
CentOS 6 died in November 2020 - migrate to a new version!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke
Re: clean install creates ifcfg-eth0 but 'service network restart' ignores it
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
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
As I see you discovered from another thread, ONBOOT=no is the problem. It's part of the CentOS FAQ...
CentOS 6 died in November 2020 - migrate to a new version!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke
-
- Posts: 1246
- Joined: 2014/05/21 20:16:00
- Location: Central New York, USA
Re: clean install creates ifcfg-eth0 but 'service network restart' ignores it
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
- after that, out of ideas
Remember - importing/building packages will likely "byte you in the butt" come update time, long after you'd forgotten you did that! Use repos whenever possible.
Re: clean install creates ifcfg-eth0 but 'service network restart' ignores it
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
From another thread: he got it working. This one is dead.
CentOS 6 died in November 2020 - migrate to a new version!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke
Re: clean install creates ifcfg-eth0 but 'service network restart' ignores it
Sorry, posted to wrong thread.
"Got it working, ONBOOT=yes, MM_CONTROLED=no"
Ben
"Got it working, ONBOOT=yes, MM_CONTROLED=no"
Ben
-
- Posts: 1246
- Joined: 2014/05/21 20:16:00
- Location: Central New York, USA
Re: clean install creates ifcfg-eth0 but 'service network restart' ignores it
POOP! I totally didn't 'connect' the network service comment and the NM_CONTROLLED. 

Remember - importing/building packages will likely "byte you in the butt" come update time, long after you'd forgotten you did that! Use repos whenever possible.