Solved

no network interfaces in centos

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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

In this tutorial I will explain how to make squid prevent malwares in five easy steps: Squid is a caching proxy for the Web supporting HTTP, HTTPS, FTP, and more. It reduces bandwidth and improves response times by caching and reusing frequently-…
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
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…
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…

705 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now