1. Types
2. appliance
3. techpreview
4. networking
5. ipv4

## appliance techpreview networking ipv4: I pv4 config

`I_pv4_config` structure Structure that defines the IPv4 configuration state of a network interface.

### Representations:

- JSON
- XML

{
"address": "string",
"default_gateway": "string",
"interface_name": "string",
"mode": "dhcp",
"prefix": 1
}
<?xml version="1.0" ?>
<ns0:IPv4Config xmlns:ns0="http://vmware.com/appliance/techpreview/networking/ipv4" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<address>string</address>
<prefix>1</prefix>
<interface_name>string</interface_name>
<default_gateway>string</default_gateway>
<mode>dhcp</mode>
</ns0:IPv4Config>

#### Attributes:

Name | Type | Description
--- | --- | ---
Required
interface_name | string | Interface name, for example, "nic0", "nic1".
mode | string | Address assignment mode. Defines different ipv4 modes Value is one of: dhcp: IPv4 address is automatically assigned by a DHCP server. is_static: IPv4 address is static. unconfigured: The IPv4 protocol is not configured.
address | string | IPv4 address, for example, "10.20.80.191". Set this argument to an empty string "", if the mode is "unconfigured" or "dhcp".
prefix | long | 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".
default_gateway | string | 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.