During a scheduled maintenance window, a Linux server connected to two networks must come up with only its management interface active. The production interface (ens18) should keep its static IP configuration because administrators sometimes bring it up manually for troubleshooting, but it must stay down after every reboot until explicitly started. Which nmcli command accomplishes this requirement without deleting the existing connection profile?
Running nmcli con mod IFNAME connection.autoconnect no updates the chosen connection profile so that NetworkManager will not attempt to activate it automatically at boot. The full configuration remains on disk and can later be started with nmcli con up IFNAME when needed. The device disconnect command only affects the current session, con up immediately activates the interface, and con delete removes the profile entirely-none of which satisfy the requirement to retain the settings while preventing automatic activation.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is the purpose of the 'connection.autoconnect' property in NetworkManager?
Open an interactive chat with Bash
How do you find the name or UUID of a connection to use with 'nmcli con mod'?
Open an interactive chat with Bash
What is the difference between 'nmcli con mod' and 'nmcli con delete'?