CentOS Icon CentOS Logo
CentOS Text
   
  
www.centos.org Forum Index
   CentOS 6 - Networking Support
  eth0 - How to enable?

 

 Bottom   Previous Topic   Next Topic
  •  Rate Thread
      Rate this Thread
      Excellent
      Good
      Average
      Bad
      Terrible
Poster Thread
  •  agriz
      agriz
eth0 - How to enable?
#1
Regular Board Member
Joined: 2011/11/19
From
Posts: 81
How do i enable my network in terminal?

Thanks
Posted on: 2011/11/27 12:58
Create PDF from Post Print
Top
  •  dejanst
      dejanst
Re: eth0 - How to enable?
#2
Jr Board Member
Joined: 2011/9/20
From
Posts: 49
Edit the cd /etc/sysconfig/network-scripts/ifcfg-ethX (X is the index of your NIC) according to your network topology and manipulate with the NIC up/down status with commands ifup/ifdown.
Posted on: 2011/11/28 9:52
Create PDF from Post Print
Top
  •  alirezaheidari
      alirezaheidari
Re: eth0 - How to enable?
#3
Newbie
Joined: 2011/11/28
From IR
Posts: 2
this is so easy..
you just..
su - root

/sbin/ifconfig eth0

/sbin/ifconfig eth0 up

enjoy it..
_________________
www.alirezaheidari.com
Posted on: 2011/11/28 9:56
Create PDF from Post Print
Top
  •  pschaff
      pschaff
Re: eth0 - How to enable?
#4
Moderator
Joined: 2006/12/13
From Tidewater, Virginia, North America
Posts: 18773
CentOS-6 uses NetworkManager by default. If you wish to use the "traditional" network service from the command line then use chkconfig to disable NetworkManager and make sure the network service is running. If etc/sysconfig/network-scripts/ifcfg-eth0 (or whatever your device is named) has a line
NM_CONTROLLED="yes"
change it to
NM_CONTROLLED="no"


See also CentOS-6 FAQ #2. Why does my Ethernet not work unless I log in and explicitly enable it?

If more help is needed then please explain the problem more completely and provide more information about your system by running "./getinfo.sh network" and showing us the output file.
_________________
Phil

Recommended reading: FAQ & Readme first ; Search hint: google "your topic site:centos.org"; Smart Questions
Posted on: 2011/11/28 21:17
Create PDF from Post Print
Top
  •  pkoraca
      pkoraca
Re: eth0 - How to enable?
#5
Newbie
Joined: 2011/11/23
From
Posts: 3
I did a minimal CentOS installation on Hyper-V and by default I didn't have network file in /etc/sysconfig/ and ifcfg-eth0 in /etc/sysconfig/network-scripts so I had to create those two files.
Posted on: 2011/11/29 8:07
Create PDF from Post Print
Top
 Top   Previous Topic   Next Topic

 


 You cannot start a new topic.
 You can view topic.
 You cannot reply to posts.
 You cannot edit your posts.
 You cannot delete your posts.
 You cannot add new polls.
 You cannot vote in polls.
 You cannot attach files to posts.
 You cannot post without approval.




"Linux" is a registered trademark of Linus Torvalds. | All other trademarks are property of their respective owners. | All other content is Copyright @ 2004-2009 by the CentOS Project or "each individual contributor (forums, comments, etc.) unless otherwise assigned".| Theme based on a theme by 7dana.com