<!--
{
  "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/NEIPv6Settings",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Network Extension"
    ],
    "preciseIdentifier" : "c:objc(cs)NEIPv6Settings"
  },
  "title" : "NEIPv6Settings"
}
-->

# NEIPv6Settings

The IPv6 settings of an IP layer network tunnel.

```
class NEIPv6Settings
```

## Overview

To specify the IPv6 settings of a packet tunnel, set its [`NEPacketTunnelNetworkSettings`](/documentation/NetworkExtension/NEPacketTunnelNetworkSettings).[`ipv6Settings`](/documentation/NetworkExtension/NEPacketTunnelNetworkSettings/ipv6Settings) property to an instance of this class.

## Topics

### Initializing IPv6 settings

[`init(addresses:networkPrefixLengths:)`](/documentation/NetworkExtension/NEIPv6Settings/init(addresses:networkPrefixLengths:))

Initializes the IPv6 settings object.

### Accessing IPv6 properties

[`addresses`](/documentation/NetworkExtension/NEIPv6Settings/addresses)

The IPv6 addresses to assign to the TUN interface.

[`networkPrefixLengths`](/documentation/NetworkExtension/NEIPv6Settings/networkPrefixLengths)

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

### Routing network traffic

[`includedRoutes`](/documentation/NetworkExtension/NEIPv6Settings/includedRoutes)

The IPv6 network traffic that the system routes to the TUN interface.

[`excludedRoutes`](/documentation/NetworkExtension/NEIPv6Settings/excludedRoutes)

The IPv6 network traffic that the system routes to the primary physical interface, not the TUN interface.

[`NEIPv6Route`](/documentation/NetworkExtension/NEIPv6Route)

The settings for an IPv6 route.



---

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)