Validating Network Configuration and Configuring Network Services

30 minutes
  • 3 Learning Objectives

About this Hands-on Lab

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.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

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

Additional Resources

SCENARIO:

One of the new development servers has two network cards. The development team would like to use the secondary NIC for internal server testing and requested it is enabled and configured for use. The team also requests the hostname to be updated and an entry to be added to the /etc/hosts file to act as an alternate name for local system testing. You also noticed the system does not have the new secondary DNS server added, so you will correct that issue with the other work.

To complete the request and get networking and name resolutions configured, you will need to:

  • View and update hostname information.
  • Update name resolution using DNS servers and the hosts file.
  • Drop and recreate the secondary network connection.

<br>

What are Hands-on Labs

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.

Get Started
Who’s going to be learning?

How many seats do you need?

  • $499 USD per seat per year
  • Billed Annually
  • Renews in 12 months

Ready to accelerate learning?

For over 25 licenses, a member of our sales team will walk you through a custom tailored solution for your business.


$2,495.00

Checkout
Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!