At this article I tried to explain how to add static route to ESXi host and Vcenter server. Please check link and also documentation for more details.
Step 1: How to add static route to ESXi host
For ESXi 5.* and also 6 ;
esxcli network ip route ipv4/ipv6 add –gateway IPv4_address_of_router –network IPv4_address
#esxcli network ip route ipv4 add --gateway 192.168.2.1 --network 192.168.120.0/24
Step 2: How to add static route to VCenter Server Appliance ;
Login VCenter Server over SSH and use route command to add routing
#route add -net 192.168.15.0 netmask 255.255.255.0 gw 192.168.121.252
Also check this link for more details
Tagged In:
VMware