# Static IP

TrapEye virtual machines use **DHCP by default**. On a network without DHCP, give the device a static IP address in its configuration before the first boot.

:::note[Requirements]
TrapEye 1.8.0 or newer. Older images ignore the static IP and use DHCP: download the latest image from **Management → Installation**.
:::

---

## How It Works

1. On first boot, the device applies the static IP from its bootstrap configuration.
2. The decoy connects to the platform and reports this configuration.
3. The platform stores it as the device network configuration in the console.

| Field | Format | Required |
|---|---|---|
| IP address | IPv4 address, e.g. `192.168.1.50` | Yes |
| Netmask | Dotted netmask, e.g. `255.255.255.0` | Yes |
| Gateway | IPv4 address in the same subnet as the IP address | Yes |
| DNS 1, DNS 2 | IP address | No |

---

## Configuration

In **Management → Installation**, open your platform and expand **Static IP (optional, DHCP by default)**:
  - **Hypervisors**: the downloaded seed ISO or generated cloud-config includes the static IP configuration.

---

## Changing the IP Address After Boot

It is possible to change this settings directly in the console when the decoy is connected to the console. The decoy applies the new configuration right away.

On images downloaded from TrapEye 1.9.0 or newer, you can also change it from the **Network** page of the decoy console, on the screen or serial port of the machine.

:::caution
If the device cannot reach the platform within 3 minutes after the change, it restores its previous network configuration.
:::