Fedora

How to List the Network Interfaces on Fedora Linux

Managing the network interfaces is essential for various tasks such as troubleshooting the network issues, configuring the network settings, and monitoring the network activity. As an administrator, you can manage the network interfaces to ensure security, performance, network connectivity, and reliability. Furthermore, listing the network interfaces provides many details about the system’s connectivity.

However, if you are a Fedora Linux beginner and you don’t know about the network interface, it can create many issues. So, in this guide, you will learn about the effective but simple ways to list the network interfaces on Fedora Linux.

How to List the Network Interfaces on Fedora Linux

Here, we included multiple commands that you can try to list and check the network interfaces on your Fedora system.

The Ip Command

The “ip” command provides extensive information about the network interface. All you need to do is add the link option with the “ip” command to display the network-related information.

ip link

This command displays the in-depth information including their names, states, and MAC addresses.

The Nmcli Command

The “nmcli” command interacts with NetworkManager, the default network management service on Fedora Linux. It shows the list of network interfaces in simple format.

nmcli device

As you can see in the previous image, the current network interfaces are enp03 and lo.

The Ifconfig Command

The “ifconfig” command, although deprecated on many Linux distributions including Fedora, can still be used to list the network interfaces.

ifconfig

The “ifconfig” command displays a list of network interfaces which provides information such as IP addresses, netmasks, and other relevant details. Remember, you can use the “ip link” command instead of “ifconfig” as it is deprecated already.

The /sys/class/net Filesystem

To list the network interfaces, you can access the “/sys” filesystem as it contains the information about your network.

ls /sys/class/net

Conclusion

This is all about the simple commands that you can use to list the network interfaces on Fedora Linux. Effectively listing the network interfaces is crucial for configuring, troubleshooting, and monitoring the network-related activities. Moreover, we don’t recommend you to change anything related to the network interface if you are a beginner. Otherwise, you may face a lot of errors.

About the author

Prateek Jangid

A passionate Linux user for personal and professional reasons, always exploring what is new in the world of Linux and sharing with my readers.