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

# vmnet_network_configuration_set_external_interface(_:_:)

Configures the external interface of a vmnet network.

```
func vmnet_network_configuration_set_external_interface(_ config: vmnet_network_configuration_ref, _ interface_name: UnsafePointer<CChar>) -> vmnet_return_t
```

## Parameters

`config`

The network configuration object to be modified.

`interface_name`

The name of the external interface

## Return Value

VMNET_SUCCESS on success, error otherwise.

## Discussion

This is only applicable to networks of `VMNET_SHARED_MODE`.

---

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)