---
title: default()
framework: networkextension
role: symbol
role_heading: Type Method
path: networkextension/neipv4route/default()
---

# default()

A convenience method for creating the default IPv4 route.

## Declaration

```swift
class func `default`() -> NEIPv4Route
```

## Return Value

Return Value An NEIPv4Route object containing the default IPv4 route.

## Discussion

Discussion Set this route in the includedRoutes array in the NEIPv4Settings object to specify that all IPv4 network traffic be routed to the TUN interface by default.

## See Also

### Creating an IPv4 Route

- [init(destinationAddress:subnetMask:)](networkextension/neipv4route/init(destinationaddress:subnetmask:).md)
