How to List Network Interfaces on Ubuntu Linux
Listing network interfaces on Ubuntu Linux shows you the network connections your computer uses.
Network interfaces are the parts of your PC that connect it to the internet or other networks, like your Wi-Fi card or Ethernet port.
You can see these interfaces using simple commands in the Terminal. For example, on Ubuntu 22.04 and later, the `ip link show` command lists them.
This command displays details about each network adapter. Another handy command, `nmcli device status`, gives you a quick overview of your devices.
If you need to find the IP address for a specific interface, `ip addr show` is the command to use.
You can list network interfaces on Ubuntu Linux using command-line tools. Run `ip link show` for a modern view, `nmcli device status` for a quick overview, or `ip addr show` for IP details.
Show network interfaces using the IP command
The IP command lets you see your network interfaces on Ubuntu Linux without installing anything extra.
To see your network interfaces on Ubuntu Linux, run the following commands.
The network manager allows you to display your network interfaces, providing a visual representation of your network connections. To do this, you can access the network settings through the Ubuntu desktop.
Run the commands below to do that.
nmcli device status
Show network interfaces using netstat
Using the IP Command
Another command you can use to display network interfaces on Ubuntu Linux is netstat. To use it, run the commands below:
The `ifconfig` command lists network interfaces on Ubuntu Linux, showing all active network connections on your computer. If the `ifconfig` command is not on your system, you can install it to check your network setup. To view more detailed information about a specific network interface, use the command `ifconfig `.
ifconfig <interface name>” or “ip addr show <interface name>.”ipconfig
List network interfaces
You can list network interfaces on Ubuntu Linux by using the `ls /sys/class/net/` command. This command directly shows you the names of all the network connections your Ubuntu machine recognizes. This offers a quick way to see available network adapters and get a basic overview of your network setup.
Ubuntu Linux displays and lists network interfaces using commands like `ip addr show` and `ifconfig`. These commands provide detailed information about each network connection. You can use these commands to understand your system's network setup.
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
Where are the network interfaces in Ubuntu?
The /etc/network/interfaces file contains network interface configuration information for both Ubuntu and Debian Linux. This is where you configure how your system is connected to the network. Here, you can configure static or DHCP IP settings, routing, DNS, and more.
Was this guide helpful?
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.
No comments yet — be the first to share your thoughts!