<!--
{
  "availability" : [
    "macOS: 11.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Virtualization",
  "identifier" : "/documentation/Virtualization/VZBridgedNetworkDeviceAttachment",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Virtualization"
    ],
    "preciseIdentifier" : "c:objc(cs)VZBridgedNetworkDeviceAttachment"
  },
  "title" : "VZBridgedNetworkDeviceAttachment"
}
-->

# VZBridgedNetworkDeviceAttachment

A network device that interacts directly with a physical network interface on the host computer.

```
class VZBridgedNetworkDeviceAttachment
```

## Overview

A [`VZBridgedNetworkDeviceAttachment`](/documentation/Virtualization/VZBridgedNetworkDeviceAttachment) object represents a physical interface on the host computer. Use this object when configuring a network interface for your virtual machine. A bridged network device sends and receives packets on the same physical interface as the host computer, but does so using a different network layer.

> Important:
> To use this attachment, your app must have the <doc://com.apple.documentation/documentation/BundleResources/Entitlements/com.apple.vm.networking> entitlement. If it doesn’t, the use of this attachment point results in an invalid ``doc://com.apple.virtualization/documentation/Virtualization/VZVirtualMachineConfiguration`` object.

To configure a network device with a bridged network interface:

1. Obtain a reference to one of the host’s physical network interfaces from the [`networkInterfaces`](/documentation/Virtualization/VZBridgedNetworkInterface/networkInterfaces) property of [`VZBridgedNetworkInterface`](/documentation/Virtualization/VZBridgedNetworkInterface).
2. Create the [`VZBridgedNetworkDeviceAttachment`](/documentation/Virtualization/VZBridgedNetworkDeviceAttachment) object using the network interface.
3. Assign the attachment object to the [`attachment`](/documentation/Virtualization/VZNetworkDeviceConfiguration/attachment) property of a [`VZVirtioNetworkDeviceConfiguration`](/documentation/Virtualization/VZVirtioNetworkDeviceConfiguration) object.
4. Add the [`VZVirtioNetworkDeviceConfiguration`](/documentation/Virtualization/VZVirtioNetworkDeviceConfiguration) object to the [`networkDevices`](/documentation/Virtualization/VZVirtualMachineConfiguration/networkDevices) property of your [`VZVirtualMachineConfiguration`](/documentation/Virtualization/VZVirtualMachineConfiguration).

## Topics

### Creating the attachment point

[`init(interface:)`](/documentation/Virtualization/VZBridgedNetworkDeviceAttachment/init(interface:))

Creates the attachment from a bridged network interface object.

### Getting the network interface

[`interface`](/documentation/Virtualization/VZBridgedNetworkDeviceAttachment/interface)

The network interface assigned to this attachment.



---

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)