- Lab
- A Cloud Guru
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.*
Path 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
What's a lab?
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.
Provided environment for hands-on practice
We will provide the credentials and environment necessary for you to practice right within your browser.
Guided walkthrough
Follow along with the author’s guided walkthrough and build something new in your provided environment!
Did you know?
On average, you retain 75% more of your learning if you get time for practice.