IT in Education

Configure a static IP address

coreosThis article describes how to configure a static IP address for Container Linux by CoreOS.


Start by logging on with SSH access. Then you can run the following commands:


This will display the current dynamically configure interface (e.g. enp2s7). Now you can create a new file.

sudo vi /etc/systemd/network/

Edit the file as follows, adding your own details of course:

[Match] Name=enp2s7 [Network] Address= Gateway= DNS=

To apply this configuration run:

sudo systemctl restart systemd-networkd

Note that this will disconnect your remote ssh session, and you will need to reconnect using the new IP address.

Thanks for visiting,