Symptoms:
esxcfg-route -a target_network_IP netmask default_gateway
esxcfg-route -a 192.168.#.#/24 192.168.#.#
esxcfg-route -a 192.168.#.# 255.255.255.0 192.168.#.#
/etc/rc.local
file. esxcli network ip route ipv4/ipv6 add --gateway IPv4_address_of_router --network IPv4_address
esxcli network ip route ipv4 add --gateway 192.168.#.# --network 192.168.#.#/24
esxcfg-route -l
. All static routes will be displayed in the output.Note -
Unable to route to gateway address 192.168.#.#
No route exists to that subnet.
esxcfg-route -l
command.192.168.#.#
/24 network, you get an error similar to the following - Found duplicate route to network 192.168.#.#
/#24. Please remove the old route first.
Note: