By default Photon OS comes with DHCP enabled, this is good enough for testing. In some case if you want to set static IP to your PhotonOS VM To get list of interfaces networkctl My network device name is eth0 ls /etc/systemd/network You will get a DHCP configuration file (99-dhcp-en.network in my case), take a backup of that file and create a new file 99-static-en.network root@photon-machine [ ~ ]# vi /etc/systemd/network/99-static-en.network [Match]Name=eth0[Network]Address=10.0.0.110/8Gateway=10.0.0.1 Save and restart the service systemd-networkd systemctl restart systemd-networkd If you are getting “Could not load configuration files: Permission denied” error change the permission of the file to 644 chmod 644 /etc/systemd/network/*…
6+ years of experience in building Data Protection, Copy Data Management and Storage management applications, automation software and plugins for private datacenter and public clouds
This is my personal weblog, opinions expressed here represent my own and not those of my employer.
All content provided on this blog is for informational purposes only and i will not be liable for any errors, losses, or damages from the display or use of this information.