Networking > Layer 3 > Logical Gateway > Interfaces

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

Configure a static IP address and netmask. Make sure an appropriate network route is also configured. You can use the optional gateway argument, or set a route using the set route command.

You cannot configure a static IP address for NSX Manager or a controller because their static IP address is set at installation and cannot be changed.

Parameters:

Option Description
<interface-name> Configurable network interface argument
<prefix-ipv46> CIDR notation argument for IPv4/IPv6 address
<gateway-ipv46> Gateway IPv4/IPv6 address argument


Example:

nsx-edge> set interface eth0 ip 192.168.110.110/24 gateway 192.168.110.1 nsx-edge>

Mode:

Basic

Availability: