In our daily computer work, we need the IP address of our machine from time to time. This tutorial lists three ways how you can determine the IP address of your local network card in Debian 10 with the help of the terminal.
Using the ifconfig command
A widely used command to find a network configuration is the ifconfig command. If it isn’t installed on your computer (which it did on my system), here’s how to install it.
Open the terminal with root privileges and run the following command to install net-tools packages.
apt-get install net-tools
Wait for the command to finish.
When you have successfully installed the ifconfig command on your computer, run it on the terminal.
You can see which IP address is bound to which network interface. If you want to check the network configuration for a specific interface, the command should look like this.
Using the IP-Addr Command
The second command you can use to find an IP address is the ip addr command. To run “IP address“At the terminal.
You can see which IP is bound to which interface in the command output.
Using the hostname command
The last command you can use to find an IP address is to run the hostname command as follows.
You will get the following result on your terminal.
These are all of the methods that you can use to determine the network configuration of your device. Enjoy!!