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 - Linux Tutorial
From the course: Complete Guide to Navigating Linux: Working with Users, Files, and Networks
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
-
-
-
-
-
-
(Locked)
Learning objectives35s
-
(Locked)
Viewing network interfaces3m 10s
-
DNS and name resolution2m 55s
-
(Locked)
Testing network connectivity4m 3s
-
(Locked)
Checking local and remote services3m 59s
-
(Locked)
Managing the firewall2m
-
(Locked)
Managing the boot procedure4m 10s
-
(Locked)
Essential troubleshooting: Recovering the root password1m 16s
-
(Locked)
Command overview45s
-
(Locked)
Lesson 4 lab: Managing networking and services25s
-
(Locked)
Lesson 4 lab solution: Managing networking and services2m 54s
-
(Locked)
-