<!--
{
  "availability" : [
    "macCatalyst: 13.0.0 -",
    "macOS: 10.10.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "vmnet",
  "identifier" : "/documentation/vmnet/vmnet_interface_id_key",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "vmnet"
    ],
    "preciseIdentifier" : "c:@vmnet_interface_id_key"
  },
  "title" : "vmnet_interface_id_key"
}
-->

# vmnet_interface_id_key

```
let vmnet_interface_id_key: UnsafePointer<CChar>
```

## Discussion

Interface identifier of the previously created interface.

If no interface identifier is passed to the `vmnet` function, a new MAC address is generated and a interface identifier is associated to it. This identifier is passed back to the client in the `interface_param` dictionary. To re-use a previously generated MAC address, the interface identifier associated with the MAC address needs to be passed to the `vmnet` function in the `interface_desc` parameter.

The value specified for this key should be of type <doc://com.apple.documentation/documentation/XPC/XPC_TYPE_UUID-swift.var>.

> Important: Specifying a value for `vmnet_interface_id_key` does not guarantee the return of MAC address associated with the identifier. In cases where the MAC address associated with the id cannot be granted, an error is returned to the caller.

> Note: This key may also be used in an XPC dictionary for a `interface_param` argument, for which it represents the identifier mapping to the MAC address returned in `vmnet_mac_address_key`. See <doc://com.apple.documentation/documentation/vmnet/interface_param_xpc_dictionary_keys> for more information.

---

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)