If you are using a recent version of Debian and you get a ‘bash: ifconfig: command not found’ error, it’s because the package with the ifconfig command is not installed. However, there is a new way to get network interface data by using the ‘ip’ command.
To get the IP addresses, link states, among other details about your network cards you can type ‘ip address‘.