[cobbler] Use ip instead of ifconfig