A network manager often finds himself in situations where he has to change various network configurations. To do this, he needs to know about all the available network interfaces in his system. Therefore, in this article, we explain the methods you can use to list the network interfaces in Debian 11.
For listing the Network Interfaces in Debian 11, you can make use of any of the six methods discussed below:
To list your Network Interfaces in Debian 11 by making use of the IP command, you will need to perform the following steps:
Launch the terminal in Debian 11 and then type the following command in it followed by pressing the Enter key:
ip addr
This command is shown in the image below:
As soon as this command will execute successfully, you will immediately be able to see all of your Network Interfaces on your terminal as shown in the following image:
Alternatively, you can also type the following command in your terminal and then press the Enter key:
ip link show
This command is shown in the following image:
The output of the above-mentioned command is shown in the image below:
For listing your Network Interfaces by making use of the netstat command in Debian 11, you will need to perform the steps mentioned below:
First of all, you will need to launch the terminal in Debian 11. After doing that, type the following command in your terminal and then press the Enter key:
netstat -i
If you get an error message while executing this command, then you will probably need to install the net-tools package before running this command. You can do this by typing the following command in your terminal and then pressing the Enter key:
sudo apt install net-tools
After the successful execution of this command, you can easily run the netstat command as shown in the following image:
As soon as the netstat command will execute successfully, you will be able to see all of your Network Interfaces on your terminal as shown in the image below:
To list your Network Interfaces in Debian 11 by making use of the ls command, you will need to perform the following steps:
Launch the terminal in Debian 10 and then type the following command in it followed by pressing the Enter key:
ls /sys/class/net
This command is also shown in the image below:
The successful execution of this command will show you the following output on your terminal:
For listing your Network Interfaces by making use of the ifconfig command in Debian 11, you will need to perform the steps mentioned below:
First of all, you will need to launch the terminal in Debian 11. Then type the following command in your terminal and press the Enter key to execute it:
/sbin/ifconfig
This command is shown in the following image:
As soon as this command will execute successfully, you will be able to see a list of all of your Network Interfaces on your terminal as shown in the image below:
To list your Network Interfaces in Debian 11 by making use of the nmcli command, you will need to perform the following steps:
Launch the terminal in Debian 11 and install the Network Manager in it by typing the following command and then pressing the Enter key:
sudo apt install network-manager
This command is shown in the image below:
Now you need to start the Network Manager Service. For doing that, type the following command in your terminal and then press the Enter key:
sudo systemctl start network-manager
This command is also shown in the following image:
After doing this, you will need to enable the Network Manager Service. For doing that, you need to type the following command in your terminal and then press the Enter key:
sudo systemctl enable network-manager
This command is shown in the image below:
Finally, run the following command in your terminal and then press the Enter key:
nmcli device status
This command is shown in the following image:
As soon as this command will execute successfully, you will be able to see all of your Network Interfaces on your terminal as shown in the image below:
For listing your Network Interfaces by making use of the cat command in Debian 11, you will need to perform the steps mentioned below:
First of all, you will need to launch the terminal in Debian 11. Then type the following command in your terminal followed by pressing the Enter key:
cat /proc/net/dev
This command is also shown in the following image:
The output of this command is shown in the image below:
By following any of the methods discussed in this article, you can easily find out all of your Network Interfaces. All of these methods are quite simple and convenient to follow. Moreover, they are sure to work perfectly well with Debian 11 systems.
Magento is a free and open-source e-commerce platform written in PHP. It is simple, easy…
ISPConfig is an open-source control panel that allows users to manage multiple servers from a…
As a Linux administrator, you may find it necessary to troubleshoot or test your Simple…
Ubuntu 24.04, like many modern Linux distributions, relies on the NetworkManager for managing network connections.…
Restic is a modern, open-source backup program designed for efficiency, security, and simplicity. It enables…
phpMyAdmin is a popular free tool written in PHP intended to administer MySQL and MariaDB…