CertGrid CertGrid
Hands-on Lab·CompTIA Linux+

Network configuration on both families

Domain 2 covers network configuration and the two families share almost no vocabulary for it. This guide reads the live state on both, finds the file each keeps its configuration in, makes a change that lasts only until reboot and one that persists - on an interface that cannot break anything - and ends with name resolution, which is configured somewhere else again.

Services and Users Guide 20 of 28 Intermediate

Both families. Every change is made on a dummy interface, so the link this session arrived over is never touched.
Server NameIP AddressOSRolesCPURAMHDD
LPLUS-A01192.168.0.73Ubuntu 26.04 LTSDebian-family host - apt, ufw, netplan, AppArmor2 Core4 GB50 GB
LPLUS-B01192.168.0.74AlmaLinux 10.2RPM-family host - dnf, firewalld, NetworkManager, SELinux2 Core4 GB50 GB

This guide includes

Use this when an address, a route or a DNS server has to change on a machine you reach over the network. This matters because ip addr add works instantly and survives nothing, and because the file that makes it permanent is in a different place, in a different format, under a different service on each family.

Before you start

  1. What each machine has right now

  2. Where the Debian family writes it down

  3. Where the RPM family writes it down

  4. A change that does not survive

  5. The same idea on the RPM family, made persistent

  6. Name resolution, configured somewhere else again

  7. Putting both machines back

Official sources