Configuring Routing on ESXI Shell


A quick post to show how to create and view routes on a ESXI Host:

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

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s