Ubuntu Linux

How to List Network Interfaces on Ubuntu Linux

Richard
Written by
Richard
Jul 5, 2023 Updated Mar 19, 2026 4 min read
How to List Network Interfaces on Ubuntu Linux

This article explains how to list network interfaces on Ubuntu Linux.

One can list network interfaces on Ubuntu Linux desktops or servers in multiple ways using multiple commands.

Some commands provide more details than others. However, they are all good, and it’s up to you to select which one fits your needs.

To list network interfaces on Ubuntu Linux, you can use the command “ip link show“, “nmcli device status” or “ip addr show“. These commands will display the IP addresses and network interfaces currently configured on the system.

A popular command previously worked on Ubuntu Linux by default is the ifconfig command. It is not installed, so you must run the sudo apt install net-tools packages to get it.

To view more detailed information about a specific network interface, you can use the command “ifconfig <interface name>” or “ip addr show <interface name>.”

This will display information such as the MAC address, MTU, and network settings for that specific interface.

Show network interfaces using the IP command

Users can show the network interfaces on Ubuntu Linux without installing additional packages using the IP command.

Run the commands below to show the network interfaces on Ubuntu Linux.

💻Code
ip link show

Show network interfaces using the network manager

Another tool that one can use to display network interfaces on Ubuntu Linux is to use the network manager.

Run the commands below to do that.

💻Code
nmcli device status

Show network interfaces using netstat

Yet, the netstat command can also display network interfaces on Ubuntu Linux. To do that, run the commands below.

Command Prompt
netstat -i

Display network interface using the ifconfig command

A popular command that previously worked on Ubuntu Linux by default is the ifconfig command. It is not installed, so you must run the sudo apt install net-tools packages to get it.

To view more detailed information about a specific network interface, you can use the command “ifconfig <interface name>” or “ip addr show <interface name>.”

Command Prompt
ipconfig

List network interfaces

Finally, users can list the content of the network interfaces folder to list the interfaces. Run the commands below to do that.

🐧Bash / Shell
ls /sys/class/net/

There might be other commands that are not listed here. However, these should get you started by displaying and listing the network interfaces on Ubuntu Linux.

Conclusion:

  • Multiple commands can be used to list network interfaces on Ubuntu Linux, providing varying levels of detail
  • Popular commands include “ip link show”, “nmcli device status”, “ip addr show”, and “netstat -i”
  • The “ifconfig” command, previously installed by default, now requires the “net-tools” package
  • Detailed information about specific network interfaces can be obtained using specific commands such as “ifconfig <interface name>” or “ip addr show <interface name>”
  • Another method is to list the content of the network interfaces folder using “ls /sys/class/net/”
  • These commands and methods serve as a starting point to display and list network interfaces on Ubuntu Linux

Frequently Asked Questions

How can I list network interfaces on Ubuntu Linux?

You can list network interfaces on Ubuntu Linux using commands like 'ip link show', 'nmcli device status', or 'ip addr show'. These commands will display the current network interfaces and their configurations.

Is the ifconfig command available by default on Ubuntu Linux?

No, the ifconfig command is not installed by default on recent versions of Ubuntu. You can install it by running 'sudo apt install net-tools' to use this command.

What information can I get from the ip addr show command?

The 'ip addr show' command provides detailed information about network interfaces, including IP addresses, MAC addresses, and network settings for each interface.

Can I use the netstat command to view network interfaces on Ubuntu?

Yes, you can use the netstat command to display network interfaces by running 'netstat -i'. This command will show you a list of interfaces and their statistics.

How do I find network interfaces without using commands?

You can list the network interfaces by checking the contents of the network interfaces folder using the command 'ls /sys/class/net/'. This will show you the available network interfaces on your system.

Was this guide helpful?

Richard

About the Author

Richard

Tech Writer, IT Professional

Richard, a writer for Geek Rewind, is a tech enthusiast who loves breaking down complex IT topics into simple, easy-to-understand ideas. With years of hands-on experience in system administration and enterprise IT operations, he’s developed a knack for offering practical tips and solutions. Richard aims to make technology more accessible and actionable. He's deeply committed to the Geek Rewind community, always ready to answer questions and engage in discussions.

2464 articles → Twitter

📚 Related Tutorials

How to Install Additional Software on Ubuntu
Ubuntu Linux How to Install Additional Software on Ubuntu
How to Add Desktop Icons in Ubuntu Linux
Ubuntu Linux How to Add Desktop Icons in Ubuntu Linux
Capture Photos with Cheese on Ubuntu Linux
Ubuntu Linux Capture Photos with Cheese on Ubuntu Linux
Enable Mobile Hotspot on Ubuntu Linux
Ubuntu Linux Enable Mobile Hotspot on Ubuntu Linux

Leave a Reply

Your email address will not be published. Required fields are marked *