How to configure static IP on Ubuntu with Netplan

Introduction Netplan is the default network configuration tool for Ubuntu Server 18.04 and newer. It uses YAML configuration files to manage network interfaces, replacing the older /etc/network/interfaces method. Static IP addresses are essential for servers to ensure they’re always reachable at the same address, which is critical for services like web servers, databases, and SSH access. What you’ll learn: Check current network configuration Configure static IP with Netplan Handle cloud-init network configuration Test and apply Netplan changes safely Troubleshoot common networking issues When to use static IPs:...

November 8, 2025 · 7 min · 1284 words