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
Last edited by mralk3; 05-13-2015 at 12:04 AM.
|