/network/if-set
Use the interface to configure the network card.
Request Mode
POST /api/network/if-set
| Parameter | Description |
|---|---|
| iface | The network card name |
| use-dhcp | True: use DHCP to get the IP False: Use the static network configuration |
| ipaddr | The IP address, which must be filled in when use-dhcp is false |
| netmask | The subnet mask, which must be filled in when use-dhcp is false |
| gateway | The gateway address, which must be filled in when use-dhcp is false |
Response Body
{
"status": 0
}
| Name | Description |
|---|---|
| status | 0 indicates that the request was accepted successfully. Refer to API Status Codes to find specific description for other values. |