# ip route

## Syntax

```
ip route <address>/<bits> <gateway>
ip route default <gateway>
```

## Syntax Description

<table><thead><tr><th width="203">Keyword</th><th>Description</th></tr></thead><tbody><tr><td>address</td><td>The target IP network or host address.</td></tr><tr><td>bits</td><td>The number of network bits in the target IP address.</td></tr><tr><td>gateway</td><td>The IP address to which packets for the target address are to be sent.</td></tr><tr><td><code>default</code></td><td>Can be used in place of "0.0.0.0/0" or "::/0" to represent the default route.</td></tr></tbody></table>

## Defaults

No static routes exist by default.

## Usage Guidelines

The command allows manually-configured (i.e., "static") routes to be inserted into Island's routing table.

Both IPv4 and IPv6 routes are supported. The target address and the gateway must both be the same protocol (IPv4 or IPv6).

The word "default" may be used to represent the default route (0.0.0.0/0 or ::0/0). The protocol of the default route (IPv4 or IPv6) will be determined by the the protocol of the specified gateway.

## Examples

```
ip route default 203.0.113.1
ip route default 2001:DB8:C014:7BE5::1
ip route 172.16.0.0/22 192.168.3.17
```

## Related Commands


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.islandrouter.com/island-router-cli-2.3.2/commands/ip-global-context/ip-route.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
