Replace usage of ifconfig with ip

1) ifconfig is considered deprecated and ip should always be used instead
2) ip is used in the rest of the script already

Change-Id: I19c8620d1a9a4a15437283c21bc029eb1127e0f5
Merge "Replace usage of ifconfig with ip"