If you move your ESXi host to a new physical location, you might have to change the default IP gateway. You can use the
vicfg-route command to manage the default gateway for the VMkernel IP stack.
vicfg-route supports a subset of the Linux
route command’s options.
If you run vicfg-route with no options, the command displays the default gateway. Use
- -family to print the default IPv4 or the default IPv6 gateway. By default, the command displays the default IPv4 gateway. Specify one of the options listed in
Connection Options in place of
<conn_options>.