---
title: "init(ethernetAddress:)"
framework: virtualization
role: symbol
role_heading: Initializer
path: "virtualization/vzmacaddress/init(ethernetaddress:)"
---

# init(ethernetAddress:)

Creates a MAC address from the specified 48-bit Ethernet address.

## Declaration

```swift
init(ethernetAddress: ether_addr_t)
```

## Parameters

- `ethernetAddress`: A 48-bit Ethernet address.

## Return Value

Return Value A MAC address object with the specified Ethernet address.

## See Also

### Creating a MAC address

- [randomLocallyAdministered()](virtualization/vzmacaddress/randomlocallyadministered().md)
- [init(string:)](virtualization/vzmacaddress/init(string:).md)
