Docs / Networking / How to Configure a Static IP Address on Linux

How to Configure a Static IP Address on Linux

By Admin · Feb 25, 2026 · Updated Apr 24, 2026 · 163 views · 1 min read

Breezes come with a pre-configured static IP. If you need to change the network configuration, here's how.

Ubuntu 22.04+ (Netplan)

Edit /etc/netplan/01-netcfg.yaml:

network:
  version: 2
  ethernets:
    eth0:
      addresses:
        - 192.168.1.100/24
      gateway4: 192.168.1.1
      nameservers:
        addresses:
          - 8.8.8.8
          - 8.8.4.4

Apply:

netplan apply

AlmaLinux / Rocky Linux (nmcli)

nmcli con mod eth0 ipv4.addresses 192.168.1.100/24
nmcli con mod eth0 ipv4.gateway 192.168.1.1
nmcli con mod eth0 ipv4.dns "8.8.8.8 8.8.4.4"
nmcli con mod eth0 ipv4.method manual
nmcli con up eth0

Warning: Misconfiguring network settings can lock you out of SSH. Use the VNC console as a backup.

Was this article helpful?