<!--
{
  "availability" : [
    "macCatalyst: 13.0.0 -",
    "macOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "vmnet",
  "identifier" : "/documentation/vmnet/vmnet_network_configuration_add_dhcp_reservation(_:_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "vmnet"
    ],
    "preciseIdentifier" : "c:@F@vmnet_network_configuration_add_dhcp_reservation"
  },
  "title" : "vmnet_network_configuration_add_dhcp_reservation(_:_:_:)"
}
-->

# vmnet_network_configuration_add_dhcp_reservation(_:_:_:)

Configures a new dhcp reservation for a vmnet network.

```
func vmnet_network_configuration_add_dhcp_reservation(_ config: vmnet_network_configuration_ref, _ client: UnsafePointer<ether_addr_t>, _ reservation: UnsafePointer<in_addr>) -> vmnet_return_t
```

## Parameters

`config`

The network configuration object to be modified.

`client`

The mac address for which the DHCP address is reserved.

`reservation`

The DHCP address to be reserved.

## Return Value

`VMNET_SUCCESS` on success, an error otherwise.

## Discussion

This method reserves a DHCP address for a client with certain MAC address. The framework doesn’t allow modifying reservation while a network is active.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)