Skip to content

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.
  • Labs icon Lab
  • A Cloud Guru
Google Cloud Platform icon
Labs

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.*

Google Cloud Platform icon
Labs

Path Info

Level
Clock icon Beginner
Duration
Clock icon 30m
Published
Clock icon Dec 04, 2020

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.

Table of Contents

  1. 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.
  2. 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 value rh8lab.
    • Ping rh8lab to confirm hosts 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.
  3. 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
    • Confirm the connection was created.
    • Confirm the new interface has the correct IP Address.

The Cloud Content team comprises subject matter experts hyper focused on services offered by the leading cloud vendors (AWS, GCP, and Azure), as well as cloud-related technologies such as Linux and DevOps. The team is thrilled to share their knowledge to help you build modern tech solutions from the ground up, secure and optimize your environments, and so much more!

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.

Start learning by doing today

View Plans