Post

Linux Home Lab Project

Linux Home Lab Project

I set up this dual-node virtualization lab to practice hands-on Red Hat Enterprise Linux (RHEL 9) system administration in a realistic environment. To simulate real-world scenarios and RHCSA exam practice, I integrated a local simulation harness containing 25 practical tasks.

This post covers Task 01: Configure networking and set hostname, walking through each step from initial environment checks to configuring network parameters via NetworkManager and verifying persistence after reboot.


Lab Environment

  • Hypervisor: VMware Fusion running on macOS.
  • Nodes: Two RHEL 9 virtual machines (node1 and node2).
  • Network Interfaces on node1:
    • enp2s0: Primary management network interface.
    • rhcsa0: Dedicated interface for practicing static network assignments.
  • Simulation Harness: Local practice suite with a web interface at http://localhost:8200 and automated CLI grading tools.

Task 01 Requirements

  • Static IPv4 Address: 172.25.250.11/24
  • Gateway: 172.25.250.254
  • DNS Server: 172.25.250.254
  • Hostname: node1.lab.network17.com
  • Autoconnect: Enabled so the connection starts automatically on boot.
  • Target Interface: Configure the profile bound to rhcsa0. Avoid reconfiguring the active management interface (enp2s0) to prevent losing access to the machine.

Step-by-Step Walkthrough

Step 1: Virtual Machine Cluster Setup

VMware Fusion Dual RHEL Node Setup

Figure 1: Dual RHEL 9 virtual machines (node1 and node2) running side-by-side in VMware Fusion.

Two independent RHEL 9 virtual machines (node1 on the left, node2 on the right) are running in VMware Fusion. Each node operates with its own virtual disk, network adapters, and dedicated resources.


Step 2: Console Verification

Console verification on node1 and node2

Figure 2: Verifying root terminal access and shell responsiveness on both nodes.

Logged in as root on both machines and ran a quick echo command (This is node1 and This is node2) to confirm terminal responsiveness and ensure commands are directed to the correct node.


Step 3: Simulator Source Tree

Simulator repository directory structure

Figure 3: RHCSA practice simulator source tree containing tasks, exams, tests, and CLI tools.

Checked the local simulator directory structure, which organizes task definitions, exam profiles, and automated grading scripts into tasks/, exams/, tests/, and bin/.


Step 4: Accessing the Simulator Web Interface

RHCSA Exam Simulator Web Dashboard

Figure 4: Simulator web interface at http://localhost:8200 displaying 25 practical tasks.

Opened the simulator web interface at http://localhost:8200. The exam consists of 25 practical tasks designed to replicate an RHCSA exam environment with an active countdown timer.


Step 5: Reviewing Task 01 Requirements

Task 01 networking and hostname requirements

Figure 5: Task 01 prompt: Configure networking and set hostname.

Reviewed the instructions for Task 01:

  • Configure interface rhcsa0 with static IP 172.25.250.11/24.
  • Set Gateway to 172.25.250.254 and DNS to 172.25.250.254.
  • Set the hostname to node1.lab.network17.com.
  • Ensure autoconnect is enabled.

Step 6: Checking Current Network Status

nmcli connection show and nmcli device status on node1

Figure 6: Checking network profiles and devices with nmcli.

On node1, checked current connections and devices:

1
2
nmcli connection show
nmcli device status
  • enp2s0: Connected ethernet interface.
  • rhcsa0: Dummy network interface profile.

Step 7: Launching nmtui

Launching nmtui in the terminal

Figure 7: Opening the NetworkManager Text User Interface (nmtui).

Launched nmtui in the terminal to configure network settings and hostname via the interactive menu.


Step 8: nmtui Main Menu

nmtui main selection menu

Figure 8: nmtui main menu options.

The menu provides three options: Edit a connection, Activate a connection, and Set system hostname. Selected Edit a connection to start configuring network parameters.


Step 9: Selecting Connection to Edit

Selecting connection profile in nmtui

Figure 9: List of available network connections in nmtui.

The connection list shows available Ethernet connections (enp2s0 and rhcsa0). Selected <Edit> to configure connection details.


Step 10: Entering Static IPv4 Settings

Editing IPv4 configuration in nmtui

Figure 10: Entering manual IPv4 settings, gateway, and DNS servers.

Configured IPv4 settings to <Manual> and entered:

  • Addresses: 172.25.250.11/24
  • Gateway: 172.25.250.254
  • DNS servers: 172.25.250.254
  • Verified that Automatically connect is checked.

Step 11: Saving Connection Changes

Saving connection profile in nmtui

Figure 11: Returning to the connection list after saving.

Selected <OK> to save the configuration changes and returned to the connection menu.


Step 12: Setting System Hostname

Setting system hostname via nmtui

Figure 12: Entering the hostname node1.lab.network17.com in nmtui.

Navigated back to the main menu, selected Set system hostname, and entered node1.lab.network17.com.


Step 13: Hostname Confirmation

Hostname update confirmation

Figure 13: Confirmation popup confirming the hostname update.

Confirmed that the hostname was updated to node1.lab.network17.com. Selected <OK> and exited nmtui.


Step 14: Verifying IP Address Configuration

ip addr command output

Figure 14: Checking IP addresses with ip addr.

Ran ip addr in the terminal to inspect the active network configuration:

1
ip addr

Checked the assigned IP addresses on each network interface to verify the changes.


Step 15: Verifying Routing Table

ip route command output

Figure 15: Inspecting the kernel routing table with ip route.

Ran ip route to check the default gateway and network routes:

1
ip route

Verified that the default route via 172.25.250.254 is in place.


Step 16: Verifying Hostname

hostname command output

Figure 16: Checking the active system hostname.

Ran hostname to confirm the active hostname:

1
hostname

Output returned node1.lab.network17.com.


Step 17: Verifying DNS Configuration

catetc/resolv.conf output

Figure 17: Checking /etc/resolv.conf for nameserver entries.

Checked /etc/resolv.conf to verify nameserver settings:

1
cat /etc/resolv.conf

Confirmed that nameserver 172.25.250.254 was generated by NetworkManager.


Step 18: Rebooting the System

Executing reboot command on node1

Figure 18: Executing the reboot command.

Issued the reboot command to restart the system:

1
reboot

Step 19: System Rebooting

Red Hat Enterprise Linux boot splash screen

Figure 19: RHEL 9 rebooting.

If the network configuration remains intact after rebooting, then it’s a success!

This post is licensed under CC BY 4.0 by the author.