How to set the IP address on Photon OS

By default, the Photon OS comes with 2 pre configured network configuration files.


First of all, list down the network interfaces with the command networkctl

Then, based on your network configuration you may select the relavent configuration file (Static IP – | DHCP – You may have to access the network configuration related directory.


Edit the Network configuration appropriately

vi /etc/systemd/network/

The changed configuration will look like this below

Save and restart the networking services

systemctl restart systemd-networkd



Please follow and like us:

Author: Chathura Ariyadasa

♚Father ♚Innovative Technical Architect ♚ Cyber Security Strategist ♞ vCISO | vCIO ♞ Blogger & an Adrenaline junkie...