---
title: "init(destinationAddress:networkPrefixLength:)"
framework: networkextension
role: symbol
role_heading: Initializer
path: "networkextension/neipv6route/init(destinationaddress:networkprefixlength:)"
---

# init(destinationAddress:networkPrefixLength:)

Initialize the NEIPv6Route

## Declaration

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

Return Value The initialized NEIPv6Route object.

## See Also

### Creating an IPv6 Route

- [default()](networkextension/neipv6route/default().md)
