#Add new gateway to route
esxcli network ip route ipv4 add –gateway 10.15.0.254 –network 10.15.0.0/24
#List ip route
esxcli network ip route ipv4 list
#Remove gateway
esxcli network ip route ipv4 remove -n 10.15.0.0/24 -g 0.0.0.0
#Add new gateway to route
esxcli network ip route ipv4 add –gateway 10.15.0.254 –network 10.15.0.0/24
#List ip route
esxcli network ip route ipv4 list
#Remove gateway
esxcli network ip route ipv4 remove -n 10.15.0.0/24 -g 0.0.0.0