SYSTem:COMMunicate:LAN:SMASk
SYSTem:COMMunicate:LAN:SMASk
This functionality is available on the 34972A only.Syntax
SYSTem:COMMunicate:LAN:SMASk "<mask>"
SYSTem:COMMunicate:LAN:SMASk? [{CURRent|STATic}]
Description
This command assigns a Subnet Mask for the instrument. The instrument uses the Subnet Mask to determine whether a client IP address is on the same local subnet. When a client IP address is on a different subnet, all packets must be sent to the Default Gateway. Contact your network administrator to determine whether subnetting is being used and for the correct Subnet Mask.
|
|
If you change the subnet mask, you must execute a SYSTem:COMMunicate:LAN:UPDate command to activate the setting. |
Parameters
Name Type Range of Values Default Value <mask> 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.
The factory default value is "255.255.0.0".
Remarks
- The assigned subnet mask is used if DHCP is disabled. Otherwise, the subnet mask is auto-assigned by DHCP.
- If DHCP is enabled (factory default), the subnet mask does not need to be set.
- If DHCP is enabled (see SYSTem:COMMunicate:LAN:DHCP command), the subnet mask is assigned by the DHCP server, so the specified subnet mask is not used. However, if DHCP is turned off, the currently configured Subnet Mask will be used.
- A value of "0.0.0.0" or "255.255.255.255" indicates that subnetting is not being used.
- The Subnet Mask 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).
Return Format
The query returns the Subnet Mask 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 dynamic Subnet Mask currently being used by the instrument. Specify "STATic" to read the Subnet Mask currently stored in non-volatile memory within the instrument (may not be the actual mask used by the instrument if DHCP is enabled).
Examples
The following command sets the Subnet Mask.
SYST:COMM:LAN:SMAS "255.255.254.0" SYST:COMM:LAN:UPDate
The following query returns the subnet mask currently being used by the instrument (the quotes are also returned).
SYST:COMM:LAN:SMAS? CURR or SYST:COMM:LAN:SMAS?
Typical Response: "255.255.254.0"
See Also
LAN Configuration Introduction
SYSTem:COMMunicate:LAN:GATEway