you can obtain eth0 ipadress via this command:

``` sh
ipAddress=`ip -f inet addr show eth0 | grep inet | sed -r -e 's/[^0-9]+(([0-9]+(\.)*)+).+/\1/g'
```