Techpreview_Networking_Ipv4_IPv4Config

Techpreview_Networking_Ipv4_IPv4Config
Techpreview_Networking_Ipv4_IPv4Config

Ipv4.IPv4Config structure Structure that defines the IPv4 configuration state of a network interface. Note: This structure is restricted for VMware internal use only.

JSON Example
{
    "interface_name": "string",
    "mode": "string",
    "address": "string",
    "prefix": 0,
    "default_gateway": "string"
}
string
interface_name
Required

Interface name, for example, "nic0", "nic1".

mode
Required

Ipv4.IPv4Mode enumerated type Defines different IPv4 modes. Note: This enumeration is restricted for VMware internal use only.
dhcp : IPv4 address is automatically assigned by a DHCP server.
is_static : IPv4 address is static.
unconfigured : The IPv4 protocol is not configured.

string
address
Required

IPv4 address, for example, "10.20.80.191". Set this argument to an empty string "", if the mode is "unconfigured" or "dhcp".

integer As int64
prefix
Required

IPv4 CIDR prefix, for example , 24. See http://www.oav.net/mirrors/cidr.html for netmask-to-prefix conversion. Set this argument to 0 if the mode is "unconfigured" or "dhcp".

string
default_gateway
Required

IPv4 address of the default gateway. This default gateway value is used if the mode argument is set to "static" This configures the global default gateway on the appliance with the specified gateway address and interface. This gateway replaces the existing default gateway configured on the appliance. However, if the gateway address is link-local, then it is added for that interface. This does not support configuration of multiple global default gateways through different interfaces.