Help answer threads with 0 replies.
Go Back > Blogs > gearge
User Name


Rate this Entry

Configuring the Ethernet NIC in CentOS 6 (RHEL 6, Scientific Linux 6)

Posted 09-06-2011 at 12:39 PM by gearge
Updated 11-26-2011 at 02:23 PM by gearge (reader comment)

Take a look at your ifcfg-ethX configuration file under /etc/sysconfig/network-scripts directory (substitute ethX with your network interface, e.g. eth0). In my case, "Minimal" install of CentOS 6 configured the ethernet interface not to start automatically (line ONBOOT="no") and to rely on NetworkManager (NM_Controlled="yes"). This is odd, as NetworkManager is not installed by default. Thus, even though the system is in runlevel 3 and you should have networking (if you NIC is supported), you wonít have it - you can start the network with "service network start", but you wonít be able to do the same for NetworkManager, as no such initialization script is available for it. The easiest solution would be to set the following values in ifcfg-ethX (donít forget to bring down the network interface first, by issuing "ifdown ethX", or another way):

Else, you will first have to install NetworkManager package, available from OS installation DVD.

Also, as you can note from your ifcfg-ethX file, by default, configuration via DHCP is not enabled. You may need to add the following line to enable it (again, donít forget to bring down the network interface first, if itís up):

Kudos to the following CentOS forums thread for tips:
Posted in Uncategorized
Views 7648 Comments 2
« Prev     Main     Next »
Total Comments 2


  1. Old Comment
    One small issue: CentOS is a derivative of RHEL, not the other way around =)
    Posted 09-06-2011 at 01:03 PM by rocket357 rocket357 is offline
  2. Old Comment
    Originally Posted by rocket357 View Comment
    One small issue: CentOS is a derivative of RHEL, not the other way around =)
    Obviously... I stand corrected! :-) A pure copy and paste issue. I will update the title. Thanks.
    Posted 09-06-2011 at 01:17 PM by gearge gearge is offline


All times are GMT -5. The time now is 10:42 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration