This runbook migrates a remotely administered Debian host from ifupdown with dhcpcd and wpa_supplicant to NetworkManager. It then configures this policy:
- Use Ethernet on
enp1s0whenever it has carrier and a global IP address. - Disconnect Wi-Fi on
wlo1while Ethernet is usable. - Connect the saved Wi-Fi profile when Ethernet loses carrier or its address.
The migration is staged so the existing SSH connection remains available until a timed, rollback-protected handoff.