NSX CLI Guide

set route prefix <prefix> gateway <gateway-ip> [interface <interface-name>]

Add a network route. You can also just set a gateway by specifying a prefix value of 0.0.0.0/0.

Parameters:

Option Description
<prefix> CIDR notation argument
<gateway-ip> Gateway IP address argument
<interface-name> Configurable network interface argument


Example:

nsx> set route prefix 10.10.10.0/24 gateway 192.168.110.1 nsx>

Mode:

Basic

Availability: