In our daily work at the computer, we need to know the IP address of our machine from time to time. This guide lists three ways in which you can find the IP address of your local network card in Debian 10 using a terminal.
A widely used command to find network configuration is the ifconfig command. If it is not installed on your computer (as it was on my system), you can install it by following the procedure.
Open a terminal with superuser rights and run the following command to install net-tools packages.
apt-get install net-tools
Wait for the team to finish.
After you have successfully installed the ifconfig command on your computer, execute it on the terminal.
You will see which IP address is connected to which network interface. If you want to check the network configuration for a specific interface, the command should look like this.
Using ip addr command
The second command you can use to find the IP address is the ip addr command. RunIP addressAt the terminal.
You will see which IP is connected to which interface in the command output.
Using the hostname command
The last command you can use to find the IP address is executed by the hostname command as follows.
You will have the following result on your terminal.
These are all the methods you can use to find the network configuration of your computer. Enjoy!!
3 ways to find your local IP address in Debian 10