# ip autoconfig

## Syntax

```
ip autoconfig disabled|full|lan|lan-no-dhcp|manual|static-wan|wan
```

## Syntax Description

<table><thead><tr><th width="203">Keyword</th><th>Description</th></tr></thead><tbody><tr><td><code>disabled</code></td><td>Disable the interface.</td></tr><tr><td><code>full</code></td><td>Automatically set the interface configuration.</td></tr><tr><td><code>lan</code></td><td>Configure the interface for a typical LAN where Island is the DHCP server.</td></tr><tr><td><code>lan-no-dhcp</code></td><td>Configure the interface for a LAN where the Island is not the DHCP server.</td></tr><tr><td><code>manual</code></td><td>Disable automatic configuration on the interface. This mode will be enabled automatically if certain <a href="/pages/rZfWb1vTTiATBne2qF2S">ip</a> interface commands are issued.</td></tr><tr><td><code>static-wan</code></td><td>Configure the interface for a WAN with a static address.</td></tr><tr><td><code>wan</code></td><td>Configure the interface for a WAN with a dynamic (i.e., DHCP) address.</td></tr></tbody></table>

## Defaults

The default is full automatic configuration.

## Usage Guidelines

When autoconfig is set to `full` on an interface (the default), the Island will determine if the interface is connected to a local area network (LAN) or to the Internet (WAN), and will set all other interface parameters as appropriate for the type of connection detected. This mode works well in most cases, and is useful for initial installation. Once installation is complete, it is generally recommended to select one of the other modes as appropriate for each interface.

When set to `manual`, automatic configuration is disabled, and the current interface configuration is written to the running configuration. Individual [interface ip commands](/island-router-cli-2.3.2/commands/ip-interface-context.md) may then be modified as needed. This configuration is the most flexible but requires that each interface configuration option be set appropriately. It can be used for unusual situations where the predefined interface modes (described below) are not sufficient.

When using manualmode, users may find it convenient to first set the interface mode to one of the modes listed below first, before switching to manual mode, to provide a convenient starting point for all interface settings. Note that the interface must be active (up) in order for the current interface settings to be retained when the mode is switched to manual.

The remainder of the modes are used to set the interface configuration appropriate for the most common network scenarios. The available modes are as follows:

* `lan`: This mode is for a typical LAN where Island should be the DHCP server. Island's DHCP server is enabled, the DHCP client is disabled, and the DHCP monitor is enabled.
* `lan-no-dhcp`: This mode is the same as `lan` except Island's DHCP server and DHCP monitor is disabled, and the DHCP client is enabled. This mode is used when another DHCP server is used for the network.
* `wan`: This mode is for a typical WAN connection where Island obtains its IP address from the provider using DHCP.
* `static-wan`:  This mode is for a WAN connection where Island is assigned a static IP address.

Note that issuing most [interface-context ip commands](/island-router-cli-2.3.2/commands/ip-interface-context.md) will cause the interface mode to be set to `manual`. When this happens, the remaining interface configuration options with their current values will be written to the running configuration, and can be modified as needed. Refer to the documentation for a specific command to determine if that command will force the interface mode to `manual`.

This command is valid only in interface context.

## Examples

```
ip autoconfig lan
ip autoconfig static-wan
```

## Related Commands

{% content-ref url="/pages/JK6QY8Ad2gffsaGWZyNw" %}
[interface](/island-router-cli-2.3.2/commands/interface.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-interface-context/ip-autoconfig.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.
