<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.11.0 -",
    "tvOS: 17.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "NetworkExtension",
  "identifier" : "/documentation/NetworkExtension/NEIPv6Route/init(destinationAddress:networkPrefixLength:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Network Extension"
    ],
    "preciseIdentifier" : "c:objc(cs)NEIPv6Route(im)initWithDestinationAddress:networkPrefixLength:"
  },
  "title" : "init(destinationAddress:networkPrefixLength:)"
}
-->

# init(destinationAddress:networkPrefixLength:)

Initialize the NEIPv6Route

```
init(destinationAddress address: String, networkPrefixLength: NSNumber)
```

## Parameters

`address`

An IPv6 address string. This string is combined with `networkPrefixLength` to specify the destination network of the route.

`networkPrefixLength`

An IPv6 network prefix length. This number is combined with `address` to specify the destination network of the route. The network prefix length must be an integer between 0 and 128.

## Return Value

The initialized `NEIPv6Route` object.

---

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)