The default installation of Red Hat CoreOS(RHCOS) and Fedora CoreOS(FCOS) Linux system will likely be getting IP address from the DHCP server. This is partially true because of how installation is through ignition configuration files which are not flexible for static IP Address assignment.

Check: How To Run FCOS on KVM / OpenStack

Unlike other Linux operating systems, the RHCOS / FCOS has no install-time configuration. The system begins with a generic disk image. For each deployment mechanism (cloud VM, local VM, bare metal), configuration can be supplied at first boot. FCOS reads and applies the configuration file with Ignition.

Set Static IP Address on RHCOS / FCOS Machine

The easy way of assigning a static IP address to a RHCOS/FCOS Linux machine is by using nmcli. nmcli is a command-line tool for managing NetworkManager and reporting network status.

Once you’ve installed RHCOS/FCOS, check the default Network profile as reported by Network Manager.

$ nmcli connection show 
NAME                UUID                                  TYPE      DEVICE 
Wired connection 1  700e90aa-2867-3ad8-ba3d-e4a21f73c98c  ethernet  ens192 

As seen in my output, I have a network named ‘Wired connection 1’ which is mapped to ens192 network interface. Your output could vary from above depending on the environment RHCOS/FCOS is running on.

So I’ll set static IP address on RHCOS/FCOS Linux using command below.

sudo nmcli connection mod 'Wired connection 1' \
  ipv4.method manual \
  ipv4.addresses \
  ipv4.gateway \
  ipv4.dns \
  +ipv4.dns \
  connection.autoconnect yes


  • is the IP address to assign
  • /24 is the subnet mask prefix – equals to
  • is the gateway address for the network. Also DNS server
  • is the secondary DNS server to be set
  • connection.autoconnect yes – Bring up the network automatically after reboot
  • ipv4.method manual – Set the IP assignment method to manual. Change from DHCP

Validate your changes.

$ nmcli connection show 'Wired connection 1'
$ cat /etc/sysconfig/network-scripts/ifcfg-Wired_connection_1 

Restart Network Manager to confirm not issues.

sudo systemctl restart NetworkManager

Similar guides:

Vuls – Best Vulnerability Scanner for Linux / FreeBSD / WordPress / Network

How to Configure Network Teaming on CentOS / RHEL 8/7

Add Secondary IP Address To CentOS / RHEL Network Interface

Your support is our everlasting motivation,
that cup of coffee is what keeps us going!

As we continue to grow, we would wish to reach and impact more people who visit and take advantage of the guides we have on our blog. This is a big task for us and we are so far extremely grateful for the kind people who have shown amazing support for our work over the time we have been online.

Thank You for your support as we work to give you the best of guides and articles. Click below to buy us a coffee.


Please enter your comment!
Please enter your name here