> For the complete documentation index, see [llms.txt](https://documentation.hak5.org/lan-turtle-hub/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.hak5.org/lan-turtle-hub/payload-development/duckyscript-for-lan-turtle/wan_ipconfig.md).

# WAN\_IPCONFIG

## WAN\_IPCONFIG

By default the LAN Turtle Hub uses DHCP to obtain an address from the RJ45 Ethernet network.

Use `WAN_IPCONFIG` to set a static IP.

{% hint style="info" %}
Remember DNS!

If DHCP is not providing a DNS server on the RJ45 Ethernet, be sure to set one using `SYSTEM_DNS`
{% endhint %}

### Options

The `WAN_IPCONFIG` command accepts several options:

```
WAN_IPCONFIG dhcp
WAN_IPCONFIG static [ip] [netmask] [gateway]
```

#### dhcp

Configure the RJ45 Ethernet to use DHCP (this is the default behavior).

static

Configure the RJ45 Ethernet to use a static IP address.  You will need to provide the IP address (as a standard dotted-quad IP, such as `192.168.9.2`), the network IP mask (as standard dotted quad, such as `255.255.255.0`), and the gateway (as a dotted quad IP, such as `192.168.9.1`).
