ifconfig Command Does Not Show IPv4 Address on Linux


#1

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?


#2

Restart network interfaces:
sudo /etc/init.d/networking restart

You can also try this command:
sudo systemctl restart networking