SYSTem:COMMunicate:LAN:DHCP

From Keysight 34970A/34972A

SYSTem:COMMunicate:LAN:DHCP

This functionality is available on the 34972A only.

Syntax

SYSTem:COMMunicate:LAN:DHCP <mode>

SYSTem:COMMunicate:LAN:DHCP?

Description

This command disables or enables use of the Dynamic Host Configuration Protocol (DHCP) for the instrument.

When DHCP is enabled (factory setting), the instrument will try to obtain an IP address from a DHCP server. If a DHCP server is found, it will assign a dynamic IP address, Subnet Mask, and Default Gateway to the instrument. If a DHCP server is not found, the instrument uses AutoIP to automatically configure its IP setting in the Automatic Private IP Addressing range (169.254.xxx.xxx).

When DHCP is disabled, the instrument will use the static IP address, Subnet Mask, and Default Gateway during power-on.

If you change the DHCP mode, you must execute a SYSTem:COMMunicate:LAN:UPDate command to activate the setting.

Parameters

Name Type Range of Values Default Value
<mode> Boolean {OFF|0|ON|1} This is a required parameter.

Remarks

  • Most site LANs have a DHCP server.
  • If a DHCP LAN address is not assigned by a DHCP server, then an AutoIP address static IP will be assumed after approximately two minutes.
  • The DHCP setting is stored in non-volatile memory, and does not change when power has been off, after a Factory Reset (*RST command), or after an Instrument Preset (SYSTem:PRESet command).
  • The query returns the current setting only. This may differ from what was just set if you have not yet executed a SYSTem:COMMunicate:LAN:UPDate command.

Return Format

The query returns 0 (OFF) or 1 (ON).

Examples

The following command disables DHCP.

SYST:COMM:LAN:DHCP OFF SYST:COMM:LAN:UPDate

The following query returns the current DHCP setting.

SYST:COMM:LAN:DHCP?

Typical Response: 0

See Also

LAN Configuration Introduction

SYSTem:COMMunicate:LAN:GATEway

SYSTem:COMMunicate:LAN:IPADdress

SYSTem:COMMunicate:LAN:SMASk

SYSTem:COMMunicate:LAN:UPDate