---
title: "init(on:etherType:)"
framework: network
role: symbol
role_heading: Initializer
path: "network/nwethernetchannel/init(on:ethertype:)"
---

# init(on:etherType:)

Initializes an Ethernet channel on a specific interface with a custom Ethernet type.

## Declaration

```swift
init(on interface: NWInterface, etherType: UInt16)
```

## Parameters

- `interface`: The interface on which to send and receive Ethernet frames.
- `etherType`: The custom Ethernet frame type to register for this channel, in host-byte order.

## See Also

### Managing Ethernet Channels

- [start(queue:)](network/nwethernetchannel/start(queue:).md)
- [cancel()](network/nwethernetchannel/cancel().md)
