Solved

no network interfaces in centos

Posted on 2014-04-22
5
252 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
  • 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 250 total points
ID: 40014858
DEVICE="eth0"

TY/SA
0
 
LVL 13

Expert Comment

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

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Fetching data from Multiple Linux Server using Shell Scripting 55 151
SonarQube on Linux vs Windows 3 51
LogmeIn using Linux Ubuntu 16.04 6 59
Moving from Mcrypt to OpenSSL 18 45
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
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…

790 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