<!--
{
  "availability" : [
    "macOS: 10.15.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Network",
  "identifier" : "/documentation/Network/NWEthernetChannel/init(on:etherType:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Network"
    ],
    "preciseIdentifier" : "s:7Network17NWEthernetChannelC2on9etherTypeAcA11NWInterfaceV_s6UInt16Vtcfc"
  },
  "title" : "init(on:etherType:)"
}
-->

# init(on:etherType:)

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

```
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.

---

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)