?
Solved

no network interfaces in centos

Posted on 2014-04-22
5
Medium Priority
?
264 Views
Last Modified: 2014-04-22
When I do a ifconfig in centos 6.5 I only see the loopback lo interface. How can get eth0 interface back online. The centos system is a vm and was powered off for a while.
0
Comment
Question by:centem
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
5 Comments
 
LVL 11

Expert Comment

by:Giladn
ID: 40014755
try:

ifconfig eth0 up
0
 
LVL 13

Expert Comment

by:Sandy
ID: 40014840
#dmesg | grep -i eth

this will show you available Ethernet interfaces.. then use

#ifup eth0

in case doesn't comes up then you need to create config file with basic parameter

/etc/sysconfig/network-scripts/ifcfg-eth0
device=eth0
onboot=yes
..
..
..

:wq

TY/SA
0
 

Author Comment

by:centem
ID: 40014856
Thanks Sandy.
I ran the dmesg and it showed the interfaces. I tried ifup etho but a "configuration for eth0 not found" message. I then created the ifcfg-eth0 file and then when I tried ifup eth0 it states "Device does not seem to be present, delaying initialization." What should I try next?
0
 
LVL 13

Accepted Solution

by:
Sandy earned 1000 total points
ID: 40014858
DEVICE="eth0"

TY/SA
0
 
LVL 13

Expert Comment

by:Sandy
ID: 40014902
Thanks.. ;)
0

Featured Post

Video: Liquid Web Managed WordPress Comparisons

If you run run a WordPress, you understand the potential headaches you may face when updating your plugins and themes. Do you choose to update on the fly and risk taking down your site; or do you set up a staging, keep it in sync with your live site and use that to test updates?

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The purpose of this article is to demonstrate how we can use conditional statements using Python.
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to moveā€¦
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month15 days, 11 hours left to enroll

741 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question