<img alt="Find IP Address Debian 11" data-ezsrc="https://kirelos.com/wp-content/uploads/2022/06/echo/debian-11-find-ip.png" data-ez ezimgfmt="rs rscb10 src ng ngcb10 srcset" height="512" src="data:image/svg xml,” width=”1024″>

In our daily computer work, we need to know the IP address of our machine from time to time. This tutorial lists three ways you can use to find the IP address of your local network card in Debian 11 with the help of the terminal.

Using ifconfig command

A widely used command to find a network configuration is the ifconfig command. If it is not installed on your machine (which was the case on my system), you can install it by following the procedure.

Open the terminal with root privileges and execute 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 machine, execute it on the terminal.

ifconfig

<img alt="Get IP address using ifconfig command" data-ezsrc="https://kirelos.com/wp-content/uploads/2022/06/echo/1-11.png" data-ez ezimgfmt="rs rscb10 src ng ngcb10 srcset" height="303" loading="lazy" src="data:image/svg xml,” width=”833″>

You will see which IP address is bound to which network interface. If you want to check the network configuration for a particular interface, the command should look like the following.

ifconfig 

Replace with the interface that you like to look up. In my example, the network interface is ens33.

<img alt="List the IP address for a specific network interface" data-ezsrc="https://kirelos.com/wp-content/uploads/2022/06/echo/5.png62a76b1ac1a53.jpg" data-ez ezimgfmt="rs rscb10 src ng ngcb10 srcset" height="170" loading="lazy" src="data:image/svg xml,” width=”825″>

Using ip addr command

The second command you can use to find an IP address is the ip addr command. Execute “ip addr” on the terminal.

ip addr

<img alt="Linux ip addr command" data-ezsrc="https://kirelos.com/wp-content/uploads/2022/06/echo/2.png62a76b1acb52f.jpg" data-ez ezimgfmt="rs rscb10 src ng ngcb10 srcset" height="222" loading="lazy" src="data:image/svg xml,” width=”825″>

You will see which IP is bound to which interface in the command output.Advertisement

Using hostname command

The last command you can use to find an IP address is by executing the hostname command as follows.

hostname -I

You will have the following result on your terminal.

<img alt="Get IP address by using hostname command" data-ezsrc="https://kirelos.com/wp-content/uploads/2022/06/echo/3.png62a76b1b070bf.jpg" data-ez ezimgfmt="rs rscb10 src ng ngcb10 srcset" height="55" loading="lazy" src="data:image/svg xml,” width=”803″>

These are all the methods you can use to find the network configuration of your machine. Enjoy!!