Question 270
After a lab configuration change, verify: A hostname change is applied only with the `hostname` runtime command and resets after restart. Which result most directly proves the desired system state?
Explanation
Correct Answer
`hostnamectl` and `hostname -f` show the intended identity after the name is resolvable and after reboot. This check confirms the expected effect of: Use `hostnamectl set-hostname node150.lab` on the disposable host. It distinguishes the intended result from the original failure mechanism: Runtime hostname assignment may not update the persistent static hostname.
Incorrect Answers
`ip -6 route` shows only the intended routes and a local subnet test succeeds. That verifies a separate lab task: An IPv6 connection receives a default route from router advertisements when policy requires the test host to use only a specified local IPv6 subnet. It does not validate the implementation required here: Use `hostnamectl set-hostname node150.lab` on the disposable host.
`nmcli -g IP4.ADDRESS,IP4.GATEWAY con show --active lablan` and `ip -4 addr` show the intended address and gateway. That verifies a separate lab task: 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. It does not validate the implementation required here: Use `hostnamectl set-hostname node150.lab` on the disposable host.
`nmcli -g connection.autoconnect connection show lablan` returns yes and `nmcli connection show --active` lists it after reboot. That verifies a separate lab task: A NetworkManager profile is stored on disk but is not automatically activated after reboot. It does not validate the implementation required here: Use `hostnamectl set-hostname node150.lab` on the disposable host.