User guide

set dhcp
106 Chapter 2 Command Descriptions
set dhcp
Device support This command is supported in all devices.
Purpose Used to:
Enable/disable DHCP (Dynamic Host Configuration Protocol). Enabling
DHCP causes the device server to obtain an IP address from the host
server. If DHCP is disabled, a static IP address must be defined for the
device server.
Renew the IP address of the device server. This causes the device
server to discard its current IP address and obtain a new one from the
host server.
Display the lease information for the current IP address.
Required
permissions
The root user can configure DHCP. Normal users can display DHCP
settings.
Syntax Configure DHCP
set dhcp [client_fdqn={on|off}]
[client_identifier=string]
[client_id_type=type]
[keepalive={accept|ignore}]
[run={on|off}]|[renew]
Display lease information for current IP address
Enter the "set dhcp" command with no parameters to display the lease
information for the current IP address.
set dhcp
Options client_fdqn={on|off}
Used to turn on the DHCP option 81 titled Client FQDN (Fully Qualified
Domain Name). This option allows the device to send its host name and
domain name to the DHCP server when requesting network settings. The
intention is that the DHCP server will use this information to determine
the IP address that it will assign to the device. Use the
"set config hostname=string" option to set the host name that will be
passed to the DHCP server, and optionally use the
"set config domain=string" option to set the domain name that will be
passed to the server. If the "domain" part is not set, then only the host
name will be passed to the DHCP server.
client_identifier=string
A text string consisting of 30 or fewer characters, which must be
surrounded by quotation marks if it contains spaces. The default is an
empty string. To enter non-printable characters, use hexadecimal format,
which is \xn, where n is a hexadecimal value (0- F). To use the backslash
character as the string, use two consecutive backslashe characters (\\).