How does networking start?

General support questions

How does networking start?

Postby jvsrvcs » 2011/07/15 06:36:59

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.
jvsrvcs
 
Posts: 31
Joined: 2011/06/24 01:00:39

Re: How does networking start?

Postby scottro » 2011/07/15 12:18:55

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.
scottro
Forum Moderator
 
Posts: 1715
Joined: 2007/09/03 21:18:09
Location: NYC

Re: How does networking start?

Postby quantumriff » 2011/07/15 13:38:53

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:
quantumriff
 
Posts: 16
Joined: 2011/05/06 15:33:07

Re: How does networking start?

Postby scottro » 2011/07/15 15:04:48

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/~computertai ... eless.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.
scottro
Forum Moderator
 
Posts: 1715
Joined: 2007/09/03 21:18:09
Location: NYC

How does networking start?

Postby pschaff » 2011/07/15 21:58:29

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

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 - CentOS 6 FAQ#2. Why does my Ethernet not work unless I log in and explicitly enable it?
pschaff
Retired Moderator
 
Posts: 18277
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America

Re: How does networking start?

Postby gstaruk » 2011/07/21 01:38:10

# 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.
gstaruk
 
Posts: 3
Joined: 2011/07/21 01:09:30

Re: How does networking start?

Postby pschaff » 2011/07/21 14:14:34

Welcome to the CentOS fora gstaruk. Please see the recommended reading for new users linked in my signature.
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.

So we have heard again and again. :-)
pschaff
Retired Moderator
 
Posts: 18277
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America


Return to CentOS 6 - General Support

Who is online

Users browsing this forum: No registered users and 10 guests