> For the complete documentation index, see [llms.txt](https://docs.islandrouter.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.islandrouter.com/island-router-cli-2.3.2/commands/ip-global-context/ip-load-sharing.md).

# ip load-sharing

## Syntax

```
[no] ip load-sharing dst-ip|random|src-dst-ip
```

## Syntax Description

<table><thead><tr><th width="203">Keyword</th><th>Description</th></tr></thead><tbody><tr><td><code>no</code></td><td>(Optional) Returns the load sharing algorithm to its default value</td></tr><tr><td><code>dst-ip</code></td><td>Consider the destination IP address when choosing an outbound WAN interface</td></tr><tr><td><code>random</code></td><td>Randomly select the outbound WAN interface for every connection</td></tr><tr><td><code>src-dst-ip</code></td><td>Consider the source and destination IP addresses when choosing an outbound WAN interface</td></tr></tbody></table>

## Defaults

The outbound WAN interface is selected randomly for each connection by default.

## Usage Guidelines

Island supports multiple WAN interfaces. Outbound connections are routed to the highest priority active WAN interface as set by the [ip priority](/island-router-cli-2.3.2/commands/ip-interface-context/ip-priority.md) command. When more than one active WAN interface is at the highest priority, Island will balance the outbound connections between them. This command selects the algorithm Island uses to determine which WAN interface is selected for each outbound connection in that case. The availble algorithms are as follows:

<table><thead><tr><th width="130">Algorithm</th><th>Description</th></tr></thead><tbody><tr><td>dst-ip</td><td>All connections to a given destination IP address will use the same interface.</td></tr><tr><td>random</td><td>The outbound interface is selected at random for each connection. This is the default.</td></tr><tr><td>src-dst-ip</td><td>All connections from a given source IP address to a given destination IP address will use the same interface.</td></tr></tbody></table>

## Examples

```
ip load-sharing src-dst-ip
```

## Related Commands

{% content-ref url="/pages/4xybQfh2KhjDXmw3gB5z" %}
[ip priority](/island-router-cli-2.3.2/commands/ip-interface-context/ip-priority.md)
{% endcontent-ref %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
