set-eth-config

Use the interface to set Ethernet configurations.

HTTP Request

GET http://ip/mwapi?method=set-eth-config&param1=value1&param2=value2...
Parameter Description
method set-eth-config
name Indicates the device name.
dhcp Indicates whether to use DHCP to obtain IP address. If yes, it shows true; otherwise, it is false.
addr Indicates the IP address.
mask Indicates the subnet mask address.
gw-addr Indicates the gateway address.
dns-addr Indicates the DNS server address.

Response Body

{
 "status": 0,
 "reconnect": true
}
Name Description
status 0 indicates that the request was accepted successfully. Refer to API Status Codes to find specific description for other values.
reconnect Indicates whether to reconnect and log in the device after modification. If yes, it is true; otherwise, it is false.

results matching ""

    No results matching ""

    results matching ""

      No results matching ""