1. Operations
2. appliance
3. techpreview
4. networking
5. ipv6

## appliance techpreview networking ipv6: set

Set IPv6 network configuration.

### Request:

#### HTTP request

PUT https://{server}/rest/appliance/techpreview/networking/ipv6

#### Request Body Structure:

- JSON
- XML

{
"config": [
{
"addresses": [
{
"address": "string",
"prefix": 1
},
{
"address": "string",
"prefix": 1
}
],
"autoconf": true,
"default_gateway": "string",
"dhcp": true,
"interface_name": "string"
},
{
"addresses": [
{
"address": "string",
"prefix": 1
},
{
"address": "string",
"prefix": 1
}
],
"autoconf": true,
"default_gateway": "string",
"dhcp": true,
"interface_name": "string"
}
]
}
<?xml version="1.0" ?>
<ns0:Set-Input xmlns:ns0="http://vmware.com/appliance/techpreview/networking/ipv6" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<config-array>
<array-item>
<dhcp>true</dhcp>
<interface_name>string</interface_name>
<default_gateway>string</default_gateway>
<addresses-array>
<array-item>
<address>string</address>
<prefix>1</prefix>
</array-item>
<array-item>
<address>string</address>
<prefix>1</prefix>
</array-item>
</addresses-array>
<autoconf>true</autoconf>
</array-item>
<array-item>
<dhcp>true</dhcp>
<interface_name>string</interface_name>
<default_gateway>string</default_gateway>
<addresses-array>
<array-item>
<address>string</address>
<prefix>1</prefix>
</array-item>
<array-item>
<address>string</address>
<prefix>1</prefix>
</array-item>
</addresses-array>
<autoconf>true</autoconf>
</array-item>
</config-array>
</ns0:Set-Input>

#### Request Body Parameters:

Name | Type | Description
--- | --- | ---
bold = required
config | I_pv6_config[] | IPv6 configuration.
config[].interface_name | string | Network interface, for example, "nic0" to configure.
config[].dhcp | boolean | Address assigned by a DHCP server.
config[].autoconf | boolean | Address is assigned by Stateless Address Autoconfiguration (SLAAC).
config[].addresses | I_pv6_address[] | A list of addresses to be statically assigned.
config[].addresses[].address | string | IPv6 address, for example, fc00:10:20:83:20c:29ff:fe94:bb5a.
config[].addresses[].prefix | long | IPv6 CIDR prefix, for example, 64.
config[].default_gateway | string | Default gateway for static IP address assignment. This configures the global IPv6 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.

### Response:

#### HTTP Status Code: 200

None

#### Errors:

HTTP Status Code | Type | Description
--- | --- | ---
500 | error | Generic error