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>


esxcfg-route <IP Address>

To view the arp table:

esxcfg-route -n

To add a route:

 esxcfg-route -a


esxcfg-route -a

To delete a route:

esxcfg-route -d


Leave a Reply

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

You are commenting using your 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 )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Create a website or blog at

Up ↑

%d bloggers like this: