Problem to get IP
Hi,
How to resolve this problem? [root@CentOS65x64 ~]# ifconfig eth0 | grep inet | awk '{ print $2 }' eth0: error fetching interface information: Device not found |
The error is self explanatory. eth0 does not exist. Run ifconfig without any argument or pipes. You will then see what network interfaces exist.
Edit- Try running the following instead: [~]$ sudo ifconfig | grep inet | awk '{ print $2 }' | sed '/127.0.0.1/d' | sed 's/addr://g' 192.168.1.136 |
You may use dhcp client to automatically set up net if a router is connected to your box.
|
Thanks all.
Mralk, Are you putting one IP to the OS? |
Quote:
|
All times are GMT -5. The time now is 05:40 AM. |