Enabling the appliance to internet access using a static route.
VMware vCenter Server 7.x
VMware vCenter Server 8.x
NOTE: Ensure to take a no memory snapshot of the vCenter server if it is standalone or powered off snapshot of the vCenter server if they are in linked mode.
NOTE: Take a backup of the file 10-eth0.network
cp /etc/systemd/network/10-eth0.network /etc/systemd/network/10-eth0.network.backup
[Match] Name=eth0 [Network] Gateway=10.20.x.x Address=10.10.x.x/26 DHCP=no [DHCP] UseDNS=falseAfter making changes to the file:
[Match] Name=eth0 [Network] Gateway=10.20.x.x Address=10.10.x.x/26 DHCP=no [DHCP] UseDNS=false [Route] Gateway=10.20.x.x Destination=192.168.x.x/16
systemctl restart systemd-networkd.service
route -n
Note: It will be persistent after patch updated. It won't be persistent after major version upgrade.
Route will be flushed after major version upgrade.