Prefer ip command over ifconfig

This is an attempt to resolve #145.

Please review and discuss here or over IRC. Also feel free to modify or ask for modifications as needed.