From the course: Complete Guide to Navigating Linux: Working with Users, Files, and Networks

Unlock this course with a free trial

Join today to access over 24,900 courses taught by industry experts.

Viewing network interfaces

Viewing network interfaces

- In this lesson, you'll learn how to view network interfaces. Every Linux system has a loopback interface and this loopback interface is used for legacy services that use TCP/IP for internal communication. Most services are using more advanced mechanisms nowadays. The name of this loopback interface is lo and it'll always have an IP address set to 127.0.0.1. The names of physical network cards, and that goes for wireless as well as wired, is determined by the network card driver. If no information could be obtained from the driver, you'll find eth0 as the standard name. To figure out network interface names, you can start by using lscpi -k, which will show devices on the PCI bus, including the drivers that they are using. Ip link show shows the network devices that are available and ip address show shows related IP configuration. Then there is ip route show, which shows which IP address is used as a default route. If you've heard about ifconfig, don't use it. It's obsolete. It won't…

Contents