You may use NetworkManager or its command line interfacenmcli instead of ifconfig. Here is a n example.
nmcli
ifconfig
You may retrieve more infos and examples here or here.