A quick post to show how to create and view routes on a ESXI Host:
To change the hostname, domain, DNS servers, and default gateway in VMware vSphere or Infrastructure Client:
- Highlight the ESX host and click the Configuration tab.
- Click DNS and Routing.
- Click Properties.
- To change the hostname, domain, and DNS servers, click the DNS Configuration tab and enter the appropriate values.
The following cmd shows the list of options:
esxcfg-route -h
To set the VMkernel default gateway:
esxcfg-route -a default <IP address>
or
esxcfg-route <IP Address>
To view the arp table:
esxcfg-route -n
To add a route:
esxcfg-route -a 192.168.100.0 255.255.255.0 192.168.0.1
or
esxcfg-route -a 192.168.100.0/24 192.168.0.1
To delete a route:
esxcfg-route -d 192.168.100.0/24 192.168.0.1