SYSTem:COMMunicate:LAN:GATEway

From Keysight 34970A/34972A

SYSTem:COMMunicate:LAN:GATEway

This functionality is available on the 34972A only.

Syntax

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

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

Description

This command assigns the static gateway for the instrument.

Contact your network administrator to determine whether subnetting is being used and for the correct address. If DHCP is enabled, DHCP will auto-assign the gateway. This auto-assigned gateway takes precedence over the static gateway assigned with this command.

If you change the gateway, 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 gateway is used if DHCP is disabled. Otherwise, the gateway is auto-assigned by DHCP.
  • The static gateway 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 static gateway is assigned by the DHCP server, so the specified static gateway is not used. However, if DHCP is turned off, the currently configured static gateway will be used.
  • A gateway value of "0.0.0.0" indicates that subnetting is not being used.

Return Format

The query form returns the address of the gateway 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 static gateway currently in use. Specify "STATic" to read the static gateway currently stored in non-volatile memory within the instrument. The gateway stored in memory is used if DHCP is disabled. If DHCP is enabled, it will auto-assign the gateway can be read by specifying "CURRent".

Examples

The following command sets the static gateway.

SYST:COMM:LAN:GATEway "192.168.1.1"
SYST:COMM:LAN:UPDate

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

SYST:COMM:LAN:GATEway? CURR

Typical Response: "192.168.1.1"

See Also

LAN Configuration Introduction

SYSTem:COMMunicate:LAN:IPADdress

SYSTem:COMMunicate:LAN:SMASk

SYSTem:COMMunicate:LAN:DHCP

SYSTem:COMMunicate:LAN:UPDate