KNZLABS :: lab08-networking

Lab 08 — Networking with NetworkManager (nmcli)

Target: any lab node · Time: 25 minutes · Reboot required: yes

> ⚠️ Networking changes can lock you out. Do them in a tmux session, set a watchdog if you're worried.

Scenario

A node needs a secondary IP address, a hostname configured cleanly, working DNS resolution, and host-based aliases for testing.

Tasks

  1. Set the hostname **persistently** to the role-specific value (the exam node, e.g. `node-exam.lab.knzlabs`). Use `hostnamectl`.
  2. Configure /etc/hosts with these aliases:
  3. - 192.168.4.71 rhcsa-node1 node1

    - 192.168.4.72 rhcsa-node2 node2

    - 192.168.4.73 rhcsa-repo repo

  4. Verify primary connection (the default `System eth0` or `cloud-init`) keeps `192.168.4.7x/24` and gateway `192.168.4.1`. **Do not change the primary IP** — that's how you SSH in.
  5. Using `nmcli`, add a SECONDARY IP `192.168.4.131/24` (or `.132`, `.133`, `.134` depending on which node) as an additional IPv4 address on the same connection. Make it persistent.
  6. Configure DNS to use `192.168.10.1` (primary) and `1.1.1.1` (secondary). Persistent in NetworkManager.
  7. Make sure NetworkManager is enabled+running.

Reboot. Re-run grader.

Grading

~/labs/lab08-networking/grader.sh