Use ip instead of ifconfig.