switch from ifconfig/route to ip

ifconfig and route have been deprecated for a while, and newer systems don't
have them by default. ip is more portable.