LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   I am unable to find eht0 while execute ifconfig commang (https://www.linuxquestions.org/questions/linux-newbie-8/i-am-unable-to-find-eht0-while-execute-ifconfig-commang-942698/)

ashwindgadhave@gmail.com 05-01-2012 05:36 AM

I am unable to find eht0 while execute ifconfig commang
 
Hello,

I have installed CentOs6 server in my virtual machine.
Whenver I fire ifconfig command I get below output on my screen

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:480 (480.0 b) TX bytes:480 (480.0 b)

But I am not getting ethernet setting in that.
Because of it I am unable to install any package from any mirror.
Please let me know if u have any solution.

fukawi1 05-01-2012 06:09 AM

By default ifconfig will only show interfaces that are up.
Code:

ifconfig -a
Will show all interfaces. You can bring the interface up using
Code:

ifconfig ethX up
Other than that you should look at whether the device is detected or not using lspci, lsmod etc, you may need drivers..

ashwindgadhave@gmail.com 05-01-2012 06:13 AM

Hello

Thank you for your reply.

Can you please tell me how can I install drivers and what are they? because I am unable to connect to any mirror. Please guide me

ashwindgadhave@gmail.com 05-01-2012 06:17 AM

Hello,

Thank you fukawi1,

Now I am able to see eth0. But one problem is still exist.
I am not able to ping any website or able to download any package from mirror.

fukawi1 05-01-2012 06:26 AM

Well Occam's Razor suggests
Code:

# ifconfig eth0 up
# dhclient eth0

Is probably worth a shot. But other than that it really could be anything.
Is the host working? other guests? The VM may not be configured correctly.
You need to know how the VM network is configured on the host.


All times are GMT -5. The time now is 08:02 PM.