From the course: Linux Foundation Certified System Administrator (LFCS) Cert Prep

Unlock this course with a free trial

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

Demo: Configure IPv4 and IPv6 networking and hostname resolution

Demo: Configure IPv4 and IPv6 networking and hostname resolution - Linux Tutorial

From the course: Linux Foundation Certified System Administrator (LFCS) Cert Prep

Demo: Configure IPv4 and IPv6 networking and hostname resolution

- [Instructor] Now let's see how to configure network settings on an Ubuntu machine. The ip command can help us discover almost everything we need to know about our network configuration. We can start out by entering ip link. This shows us our networking devices, also called network interfaces in Linux terminology. Some are real devices like ethernet cards, wireless cards, et cetera. But other devices shown here can be virtual. Now the lo, here at the top, is the loopback interface, which is virtual. The loopback interface is used by the system when it needs to connect to itself. For example, when a program wants to connect to a database application running on the same system, it goes to 127.0.0.1 through this loopback device. enp0s3 is an interface representing a real device, in this case an ethernet card. Now, to display the IP addresses configured for these interfaces, we can run ip address, or even shorter command, ip addr, or ip a. And this output is a bit messy and hard to read.…

Contents