Set a Static IP on Ubuntu Without Losing Access
A stable address is usually safest as a DHCP reservation. When the host itself must own a static address, identify the active renderer, choose an address outside the dynamic pool, validate Netplan syntax, use rollback-capable apply, and verify link, route, DNS, and remote access separately.