| Document ID | Maintainer | Description | Version |
|---|---|---|---|
| 2026111704 | corin | Configure a static internal IP address on Ubuntu 22.04 | V2.0 |
ip route show includes proto dhcp:default via 10.62.71.254 dev enp128s31f6 proto dhcp src 10.62.64.20 metric 100enp128s31f6. Record the current IP address, prefix length, gateway, and DNS servers:/etc/netplan/01-static.yaml. If you create a new file, first resolve any DHCP configuration for the same interface in other files to prevent conflicts when Netplan merges the configurations.192.168.10.20/24. Remove the second DNS entry if only one DNS server is used./etc/cloud/cloud.cfg.d/99-disable-network-config.cfg to prevent it from overwriting the manual configuration after a reboot:netplan try first. Check network connectivity and confirm the configuration when prompted. If you do not confirm before the timeout, the command attempts to roll back the changes. After validating the configuration, use sudo netplan apply if you need to apply it again.proto static, and the interface should no longer obtain this IPv4 address through DHCP. Do not rely solely on the route protocol label to verify the configuration. Check again after a scheduled reboot, then rerun the deployment precheck.