Question 30
After a lab configuration change, verify: A training host has DHCP IPv4 but requires a fixed address `192.0.2.50/24` and gateway `192.0.2.1` for a private lab subnet. Which result most directly proves the desired system state?
Explanation
Correct Answer
`nmcli -g IP4.ADDRESS,IP4.GATEWAY con show --active lablan` and `ip -4 addr` show the intended address and gateway. This check confirms the expected effect of: Identify its NetworkManager profile, then `nmcli con mod lablan ipv4.method manual ipv4.addresses 192.0.2.50/24 ipv4.gateway 192.0.2.1` in the isolated lab. It distinguishes the intended result from the original failure mechanism: NetworkManager connection profiles hold persistent address settings, unlike transient `ip addr add` commands.
Incorrect Answers
The profile reflects changed settings and existing remote management remains recoverable. That verifies a separate lab task: A new network connection profile was edited but the operator attempts an unsafe remote restart of all networking services. It does not validate the implementation required here: Identify its NetworkManager profile, then `nmcli con mod lablan ipv4.method manual ipv4.addresses 192.0.2.50/24 ipv4.gateway 192.0.2.1` in the isolated lab.
After reconnect or reboot `nmcli con show` and `ip addr` still report the address. That verifies a separate lab task: A technician adds an IPv4 address with `ip addr add`, but it disappears after reboot. It does not validate the implementation required here: Identify its NetworkManager profile, then `nmcli con mod lablan ipv4.method manual ipv4.addresses 192.0.2.50/24 ipv4.gateway 192.0.2.1` in the isolated lab.
The listener remains available after a controlled reboot and `systemctl is-enabled httpd` reports enabled. That verifies a separate lab task: A web service must start after every reboot, but `ss -tln` shows its listener only after manual execution. It does not validate the implementation required here: Identify its NetworkManager profile, then `nmcli con mod lablan ipv4.method manual ipv4.addresses 192.0.2.50/24 ipv4.gateway 192.0.2.1` in the isolated lab.