Question 230
You have attempted this task on a local virtualization classroom: A NetworkManager profile is stored on disk but is not automatically activated after reboot. Which command output or observation best confirms its success?
Explanation
Correct Answer
`nmcli -g connection.autoconnect connection show lablan` returns yes and `nmcli connection show --active` lists it after reboot. This check confirms the expected effect of: Set `nmcli connection modify lablan connection.autoconnect yes` and activate it when safe. It distinguishes the intended result from the original failure mechanism: Persisted connection configuration can remain inactive when autoconnect is disabled.
Incorrect Answers
The port remains listed in permanent configuration and works after a controlled reboot. That verifies a separate lab task: An operator opens an authorized lab TCP port using only the runtime firewalld command, so access disappears after reboot. It does not validate the implementation required here: Set `nmcli connection modify lablan connection.autoconnect yes` and activate it when safe.
An authorized client connects and the correct zone reports the service or port. That verifies a separate lab task: A firewall rule was added to the default zone, but the application's NIC is assigned to a different active zone. It does not validate the implementation required here: Set `nmcli connection modify lablan connection.autoconnect yes` and activate it when safe.
`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: Set `nmcli connection modify lablan connection.autoconnect yes` and activate it when safe.