How to List Network Interfaces in Ubuntu Linux
In this tutorial we are going to learn how to list network interfaces in Ubuntu Linux. For the tutorial I am going to use Ubuntu Server 16.04, But this works on any previous version of Ubuntu Linux.
List network interfaces using ip link command
The easiest way to List all available network interfaces on Ubuntu Linux is by using ip link show command. Open Ubuntu terminal and Type.
ip link show
The Output of the ip link show command should similar to below screenshot.
As you can see I have two network interfaces on my Ubuntu Server (Not counting the loopback interface), enp0s3 and enp0s8. Output also includes the mac address.
We can pass the name of the network interface as an option to get detail on a single link.
ip link show enp0s3
The above command will list the information about enp0s3 interface on Ubuntu Server 16.04.
List Network Interfaces with IP Address
We can use ip address command to list Network Interfaces in Ubuntu Server along with the IP Address of Network port.
ip address show
The output of the ip address show command should similar to the following screenshot.
As you can see, Ubuntu ip address command list network interface with the IP Address that has been assigned.
The ip address show command also can take the name of the interface as a command option.
ip address show enp0s3
The Above command will list the IP detail on enp0s3 interface.
Summary - Ubuntu List Network Interfaces
We use ip link show command to list all available network interfaces in Ubuntu Linux 16.04.
The ip address show command uses get IP Address of the available network interfaces in Ubuntu Linux.