RIGOL
DS4000E Programming Guide
2-105
:LAN:DHCP
Syntax
:LAN:DHCP <bool>
:LAN:DHCP?
Description
Turns on or off the DHCP configuration mode; or queries the on/off status of the current DHCP
configuration mode.
Parameter
Name
Type
Range
Default
<bool>
Bool
{{1|ON}|{0|OFF}}
1|ON
Remarks
The high-to-low priority of the three IP configuration modes is "DHCP", "Auto IP" and "Static IP". The
three IP configuration modes cannot be all turned off at the same time. To use the DHCP configuration
mode, turn on this configuration mode.
When the DHCP configuration mode is valid, the DHCP server in the current network will assign the
network parameters (such as the IP address, the subnet mask, the gateway address, and the DNS
server address) to the oscilloscope.
Return Format
The query returns 1 or 0.
:LAN:DNS
Syntax
:LAN:DNS <string>
:LAN:DNS?
Description
Sets or queries the DNS server address.
Parameter
Name
Type
Range
Default
<string>
ASCII String
Refer to Remarks
--
Remarks
The format of <string> is nnn,nnn,nnn,nnn. The range of the first section of "nnn" is from 1 to 223
(except 127), and the ranges of the other three sections of "nnn" are from 0 to 255.
When the DHCP configuration mode is valid (refer to the :LAN:DHCP command), the DHCP server in
the current network will assign the DNS server address to the oscilloscope. You can use this command
to query the current DNS server address.
When the auto IP (refer to the :LAN:AUToip command) or static IP (refer to the :LAN:MANual
command) configuration mode is valid, you can use this command to set or query the DNS server
address.
Return Format
The query returns the DNS server address in strings.