DHCP_BY_HOSTNAME

Description

Set or get the configuration of using hostname in the DHCP.

When it is enabled, the device will add its hostname in the DHCP discovery packet when it tries to get an IP address from DHCP servers. Note that this configuration is only valid if the WAN_TYPE = 1.

Refer to the use hostname in DHCP design specification for further details.

The change of this configuration will not take effect immediately. It needs to save and reboot.

If the CHANNEL=n was set with this URL to the Multi-Channel device, this URL will be treated as read-only command and the Router's DHCP_BY_HOSTNAME setting will be returned.

Input Argument

state
where 0: disable, 1: enable

Attribute

Return of Message

DHCP_BY_HOSTNAME='0'

OK: DHCP_BY_HOSTNAME='1'
or
ERROR: DHCP_BY_HOSTNAME='1'

Applicability

Status

Valid

See Also

WAN_TYPE, LAN_HOSTNAME

Example

http://ip:port/cgi-bin/system?USER=Admin&PWD=123456&DHCP_BY_HOSTNAME
or
http://ip:port/cgi-bin/system?DHCP_BY_HOSTNAME

http://ip:port/cgi-bin/system?USER=Admin&PWD=123456&DHCP_BY_HOSTNAME=1
or
http://ip:port/cgi-bin/system?DHCP_BY_HOSTNAME=1

Back to

HOME, SYSTEM CGI