CP-9795: Use ip tool instead of ifconfig

The output of ifconfig varies by version so rather parse the output
of the ip tool.

Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com>
Merge pull request #2044 from rosslagerwall/ifconfig-output

CP-9795: Use ip tool instead of ifconfig