/etc/systemd/network/10-eth0.network configuration file to add [Route] sections are lost after a system reboot.e.g., 10-eth0.network.bak or similar) containing the previous manual configuration may be generated in the same directory.ip route show" confirm that the custom static routes are not loaded into the kernel table post-reboot.VMware Aria Operations 8.18.x
This behavior is by design in VMware Aria Operations 8.18.x running on Photon OS 5. The appliance utilizes a "Desired State" network configuration model where the vApp Properties (OVF Environment) defined in vCenter Server act as the single source of truth for network settings.
While VMware Aria Operations does not natively preserve manual routing changes by default, Photon OS 5 supports systemd drop-in files. This mechanism allows you to define custom routes that persist through system reboots. Perform the steps below to achieve the same :
vi /etc/systemd/network/10-eth0.network.d/custom.conf
[Route]Destination=##.##.##.##/##Gateway=##.##.##.##GatewayOnLink=trueEsc, then type :wq! and press Enter.Set correct file permissions: Assign standard read permissions to ensure the system can access the file: chmod 644 /etc/systemd/network/10-eth0.network.d/custom.conf
systemctl restart systemd-networkd
route -n or ip routeImportant Considerations:
While drop-in files are a supported extension method, they may not be retained during major OS upgrades or if vApp properties are modified. Always keep a record of custom routing configurations to re-apply them if the configuration is wiped during such change.