I didn't know that I wouldn't have the ifconfig command if I installed Debian. Well actually it was ProxMox, which is based on Debian.

But if you're here, you're probably wanting to know how to install ifconfig on Debian. I like the command and it's often the first thing I type in a terminal if I'm having network difficulties.

So to install ifconfig on debian, just open a terminal (with root privileges) and install it with the following command:

apt install net-tools

Now you've got ifconfig installed.

Try it. Open a terminal and type ifconfig and then press Enter.