base: ips uses ifconfig or ip according to $OSTYPE, supports IPv6

ifconfig not available to users on Linux and it has a different output,
using ip instead. Also, added support to show IPv6 addresses too.