LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Blogs > gearge
User Name
Password

Notices

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

Quote:
ONBOOT="yes"
NM_Controlled="no"
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):

Quote:
BOOTPROTO="dhcp"
Kudos to the following CentOS forums thread for tips:
https://www.centos.org/modules/newbb...32163&forum=55
Posted in Uncategorized
Views 6323 Comments 2
« Prev     Main     Next »
Total Comments 2

Comments

  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
    Quote:
    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 01:42 AM.

Main Menu
Advertisement

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