Originally published at: https://www.cyberciti.biz/faq/linux-unix-ifconfig-does-not-show-ip-address/
ifconfig command does not show IP address on my Linux based laptop computer. How do I fix this problem?
Restart network interfaces:
sudo /etc/init.d/networking restart
You can also try this command:
sudo systemctl restart networking