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

# NEIPv6Route

The settings for an IPv6 route.

```
class NEIPv6Route
```

## Topics

### Creating an IPv6 Route

[`-  initWithDestinationAddress:networkPrefixLength:`](/documentation/NetworkExtension/NEIPv6Route/init(destinationAddress:networkPrefixLength:))

Initialize the NEIPv6Route

[`+  defaultRoute`](/documentation/NetworkExtension/NEIPv6Route/default())

A convenience method for creating the default IPv4 route.

### Accessing IPv6 Route Properties

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

The destination network address of the route.

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

The destination network prefix length of the route.

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

The address of the next-hop gateway of the route.

## Relationships

### Conforms To

[`NSCopying`](/documentation/Foundation/NSCopying)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`CVarArg`](/documentation/Swift/CVarArg)

[`Hashable`](/documentation/Swift/Hashable)

[`Equatable`](/documentation/Swift/Equatable)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`NSCoding`](/documentation/Foundation/NSCoding)

[`NSSecureCoding`](/documentation/Foundation/NSSecureCoding)

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

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)