Home / Docs Center / Device API Reference / Network(Ethernet0)Configuration
Network(Ethernet0)Configuration
Project: Device API Documentation (New) | page_id: 473
Brief Description:
- Modify the network configuration or the configuration of Ethernet port 0
Request URL:
- /xsw/api/net/network
Request Method:
- POST、GET
URL Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| dhcpEnable | Yes | number | 0:DHCP disabled,1:DHCP enabled |
| ip | Yes | string | Configure IP |
| netmask | Yes | string | Configure subnet mask |
| gateway | Yes | string | Configure gateway |
| dns1 | Yes | string | Configure DNS1 |
| dns2 | Yes | string | Configure DNS2 |
| mtu | No | number | Optional. 1-1500 |
Response Example
{"code":0,"msg":""}
Response Parameter Description
| Parameter | Type | Description |
|---|---|---|
| code | int | 0 means success, others mean failure |
| msg | string | Error information |
Notes
- The modification will restart streaming. After the IP is changed, please use the correct IP to access again
- If changed to DHCP, use the search tool to query the latest IP
Didn't find what you need?Contact us,Talk to our engineers directly.