Get the current ip address from not only eth0 but also vnet0

Some virtual machines have vnet0 as their default interface