# 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: 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-load-sharing.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.
