Home / Docs Center / Device API Reference / Network(Ethernet0)Configuration

Network(Ethernet0)Configuration

Device API Reference · New API

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.

Request a Quote

Fill in the form and we will get back with a quote and proposal within 1 business day.

Click "Generate inquiry email" to open your mail client with the body pre-filled. If no mail client is configured, click "Copy" and paste it into webmail — recipient: sunshiyang@xstrive.com.