---
title: networkPrefixLengths
framework: networkextension
role: symbol
role_heading: Instance Property
path: networkextension/neipv6settings/networkprefixlengths
---

# networkPrefixLengths

The IPv6 network prefix lengths to assign to the TUN interface.

## Declaration

```swift
var networkPrefixLengths: [NSNumber] { get }
```

## Discussion

Discussion Each network prefix length in this array is combined with the IP address in the corresponding index in addresses to specify an IPv6 network that the TUN interface is (virtually) connected to.

## See Also

### Accessing IPv6 properties

- [addresses](networkextension/neipv6settings/addresses.md)
