Solved

no network interfaces in centos

Posted on 2014-04-22
5
249 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

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
Fine Tune your automatic Updates for Ubuntu / Debian
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

809 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