How does networking start?

General support questions
Post Reply
jvsrvcs
Posts: 31
Joined: 2011/06/24 01:00:39

How does networking start?

Post by 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.

scottro
Forum Moderator
Posts: 2556
Joined: 2007/09/03 21:18:09
Location: NYC
Contact:

Re: How does networking start?

Post by 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.

quantumriff
Posts: 16
Joined: 2011/05/06 15:33:07

Re: How does networking start?

Post by 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:

scottro
Forum Moderator
Posts: 2556
Joined: 2007/09/03 21:18:09
Location: NYC
Contact:

Re: How does networking start?

Post by 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/~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.

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

How does networking start?

Post by pschaff » 2011/07/15 21:58:29

[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]

gstaruk
Posts: 3
Joined: 2011/07/21 01:09:30

Re: How does networking start?

Post by 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.

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Re: How does networking start?

Post by pschaff » 2011/07/21 14:14:34

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]. :-)

Post Reply