# set.system.net_config
Configures the device's network settings. The device will reboot to apply the new configuration.
## Parameters
| param | String or Object | Can be the string `"dhcp"` to enable DHCP, or a JSON object for a static IP configuration. |
| param.ip (optional) | String | The static IP address. |
| param.netmask (optional) | String | The subnet mask. |
| param.gateway (optional) | String | The gateway address. |
| param.dns (optional) | String | The DNS server address. |
## Examples
### Request (DHCP)
```json
{
"cmd": "set.system.net_config",
"ts": 419304089,
"token": "Y0Ijoro/",
"account": "super",
"param": "dhcp"
}
```
### Request (Static IP)
```json
{
"cmd": "set.system.net_config",
"ts": 419304089,
"token": "Y0Ijoro/",
"account": "super",
"param": {
"ip": "192.168.2.22",
"netmask": "255.255.255.0",
"gateway": "192.168.2.1",
"dns": "192.168.2.1"
}
}
```
### Response
```json
{
"code": 0,
"when": 1672281726,
"msg": "ok",
"desc": "set.system.net_config"
}
```