Networking > Layer 3 > Logical Gateway > Interfaces

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

Set the plane property of the interface and optionally configure the IP address. By default, the plane property is not configured, the dataplane component takes control of the interface for the data path and the interface is not visible to the Linux kernel. If plane is set to mgmt, it is reported as such to the management plane (MP) via MPA, and the corresponding interface is not consumed by the dataplane for dataplane operations and is available for configuration from the CLI. If it is set to debug, the dataplane does not consume the interface for dataplane operations and the interface is available for configuration from the CLI.

Optionally, you can configure the interface with a DHCP or static IP address. If you configure a static IP address, 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.

For NSX Manager or a controller, you cannot configure the plane property. You also cannot configure a DHCP or static IP address because both NSX Manager and a controller have a static IP address that 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
<plane> Interface plane argument
Allowed values: mgmt, debug


Example:

nsx-edge> set interface eth0 plane mgmt nsx-edge> or nsx-edge> set interface eth0 dhcp plane mgmt nsx-edge> or nsx-edge> set interface eth0 ip 192.168.110.111/24 gateway 192.168.110.1 plane mgmt nsx-edge>

Mode:

Basic

Availability: