3 ways to find your local IP address in Debian 10

s2 0

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.

ifconfig

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.

ifconfig <interface>

Replace through the interface you want to look up. In my example the network interface is ens33.

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.

ip addr

Linux ip addr command

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.

hostname -I

You will get the following result on your terminal.

Get the IP address using the hostname command

These are all of the methods that you can use to determine the network configuration of your device. Enjoy!!

3 ways to find your local IP address in Debian 10