- Lab
-
Libraries: If you want this lab, consider one of these libraries.
- Cloud

Validating Network Configuration and Configuring Network Services
In this hands-on lab, you will be reviewing hostname information, name resolution, and network interfaces. Using the `hostnamectl` command, you will view and update hostname for the system. You will also add an entry to the `/etc/hosts` file and a DNS server to the default network connection, reloading the interface and cycling the service to pick up the change. Finally, you will drop a network connection and recreate it, assigning it an IPv4 address and gateway. *This course is not approved or sponsored by Red Hat.*

Lab Info
Table of Contents
-
Challenge
View and Update Hostname Information
- Use
hostnamectl
to view hostname details. - Set a new hostname,
rh8server1
, for the system. - Set a pretty name,
RH8 Lab Server
, for the server. - Confirm new values were updated using
hostnamectl
.
- Use
-
Challenge
Update Name Resolution by Adding DNS Servers and Editing the /etc/hosts File
- Add a line to the
/etc/hosts
file, using the local IP Address and the valuerh8lab
. - Ping
rh8lab
to confirmhosts
entry works. - Use
nmcli
to view network connections. - Add the DNS server 8.8.8.8 to the default connection,
System eth0
. - Reload the interfaces and cycle the
NetworkManager
service to pickup the changes. - Confirm the
/etc/resolv.conf
contains the new DNS server.
- Add a line to the
-
Challenge
Drop and Recreate the Secondary Network Connection
- Use
nmcli
to view network connections. - Delete the secondary connection,
Wired connection 1
. - Recreate the connection with the following details:
- Name:
New connection
- Interface name:
eth1
- Type:
ethernet
- IP Address:
10.0.10.10/24
- Gateway:
10.0.10.1
- Name:
- Confirm the connection was created.
- Confirm the new interface has the correct IP Address.
- Use
About the author
Real skill practice before real-world application
Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.
Learn by doing
Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.
Follow your guide
All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.
Turn time into mastery
On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.