SYSTem:COMMunicate:LAN:IPADdress

From Keysight 34970A/34972A

SYSTem:COMMunicate:LAN:IPADdress

This functionality is available on the 34972A only.

Syntax

SYSTem:COMMunicate:LAN:IPADdress "<address>"

SYSTem:COMMunicate:LAN:IPADdress? [{CURRent|STATic}]

Description

This command assigns the static IP address for the instrument.

If DHCP is enabled, DHCP will auto-assign the IP address. This auto-assigned IP address takes precedence over the static IP address assigned with this command.

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

Parameters

Name Type Range of Values Default Value
<address> Quoted String Specified in four-byte dot notation ("nnn.nnn.nnn.nnn"), where "nnn" in each case is a byte value in the range 0 through 255. This is a required parameter.

Remarks

  • The assigned IP address is used if DHCP is disabled. Otherwise, the IP address is auto-assigned by DHCP.
  • The IP address 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).
  • If DHCP is enabled (see SYSTem:COMMunicate:LAN:DHCP command), the IP address is assigned by the DHCP server, so the specified IP address is not used. However, if DHCP is turned off, the currently configured IP address will be used.
  • IF DHCP is enabled, but a DHCP server is not available, the IP address is determined by AutoIP.
  • If you are planning to use a static IP address on a site LAN, contact your network administrator to obtain a fixed IP address to be used exclusively for your instrument, along with the corresponding subnet mask and gateway.

Return Format

The query form returns the address of the IP address of the instrument in the form "nnn.nnn.nnn.nnn".

Note that the query version of the command has two optional parameters. Specify "CURRent" (default) to read the IP address currently in use. Specify "STATic" to read the IP address currently stored in non-volatile memory within the instrument. The IP address stored in memory is used if DHCP is disabled. If DHCP is enabled, it will auto-assign the IP address, and that DHCP assigned address can be read by specifying "CURRent".

Examples

The following command sets the static IP address.

SYST:COMM:LAN:IPAD "198.168.1.2" SYST:COMM:LAN:UPDate

The following query returns the IP address currently being used by the instrument (the quotes are also returned).

SYST:COMM:LAN:IPAD? CURR

Typical Response: "198.168.1.2"

See Also

LAN Configuration Introduction

SYSTem:COMMunicate:LAN:DHCP

SYSTem:COMMunicate:LAN:SMASk

SYSTem:COMMunicate:LAN:GATEway

SYSTem:COMMunicate:LAN:UPDate