IP Address

You may use NetworkManager or its command line interfacenmcli instead of ifconfig. Here is a n example.

You may retrieve more infos and examples here or here.