Page 1 of 1

How does networking start?

Posted: 2011/07/15 06:36:59
by jvsrvcs
On any flavor/version of Linux I have installed in the past, I would install and then $ping yahoo.com and get a very warm fuzzy feeling that networking was working when I would get replies back.

After installing CentOS6, I cannot get networking to work. anyone know why?

I tried:
/etc/rc.d/init.d/network start

but that did nothing.

Is there a conspiracy to keep amateurs & hobbyists off CentOS 6 and leave it to untilmate ninja hackers to get working?

I don't know what is wrong that networking does not seem to work on the box. It is attached to a live, internet wire that worked with Fedora 9.

Re: How does networking start?

Posted: 2011/07/15 12:18:55
by scottro
No, the conspiracy is to turn everyone into touchscreen users, judging from the latest changes in various things.

Look in /etc/sysconfig/network-scripts for ifcfg-eth0

It probably has (though, this is judging by Fedora, don't know if CentOS has gotten to this point yet,) NM_Controlled=yes

That means, it assumes you want network manager to control your interface. If you're not running network manager, it might not start the interface.

If you post the contents of that file, we can possibly be of more help.

Also, take a look at the links in my signature, you are leaving out some information, such as do you boot into a GUI, if so, which GUI, and so on.

Re: How does networking start?

Posted: 2011/07/15 13:38:53
by quantumriff
During the setup, when it comes time to setup the hostname, I click the networking button, and then go into network manager and tell it to activate on boot. (and setup IP info).

I haven't figured out how to do it otherwise yet, but now I will watch this thread :lol:

Re: How does networking start?

Posted: 2011/07/15 15:04:48
by scottro
Well, I have a page, more aimed at troubleshooting wireless in Fedora, but still possibly useful, for getting NM out of the equation.

http://home.roadrunner.com/~computertaijutsu/wireless.html


On the other hand, if you're using Gnome, then there may be no reason to take NetworkManager out of the equation, if it's working for you.

How does networking start?

Posted: 2011/07/15 21:58:29
by pschaff
[quote]
scottro wrote:
No, the conspiracy is to turn everyone into touchscreen users, judging from the latest changes in various things.

Look in /etc/sysconfig/network-scripts for ifcfg-eth0

It probably has (though, this is judging by Fedora, don't know if CentOS has gotten to this point yet,) NM_Controlled=yes[/quote]
RHEL-6 and thus CentOS-6 default to NetworkManager. I am not happy with this direction either, but it is pretty simple to either turn it off and use the network service, or set it up to start the Ethernet interface at boot time, which should IMNSHO be the default, but is not.

Edit: After repeated similar posts this resulted - [url=http://wiki.centos.org/FAQ/CentOS6#head-b67e85d98f0e9f1b599358105c551632c6ff7c90]CentOS 6 FAQ#2. Why does my Ethernet not work unless I log in and explicitly enable it?[/url]

Re: How does networking start?

Posted: 2011/07/21 01:38:10
by gstaruk
# vi /etc/sysconfig/network-scripts/ifcfg-eth0

edit so that 'onboot=yes' then save file and reboot. This will enable eth0 on every bootup, the default is set to no, even on minimal install in my experience.

Re: How does networking start?

Posted: 2011/07/21 14:14:34
by pschaff
Welcome to the CentOS fora [b]gstaruk[/b]. Please see the recommended reading for new users linked in my signature.
[quote]
gstaruk wrote:
# vi /etc/sysconfig/network-scripts/ifcfg-eth0

edit so that 'onboot=yes' then save file and reboot. This will enable eth0 on every bootup, the default is set to no, even on minimal install in my experience.[/quote]
So we have heard [url=https://www.centos.org/modules/newbb/viewtopic.php?topic_id=32236&forum=58&post_id=138130#forumpost138130]again[/url] and [url=https://www.centos.org/modules/newbb/viewtopic.php?topic_id=32211&forum=58&post_id=138131#forumpost138131]again[/url]. :-)