NSX CLI Guide
set route prefix <prefix> [gateway <gateway-ip>] [interface <interface-name>] [metric <ip-route-metric>]
Add IPv4 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 |
| <ip-route-metric> | IP route metric argument Allowed pattern: ^[0-9]+$ |
| <gateway-ip> | Gateway IP address argument |
| <interface-name> | Configurable network interface argument |