MANUAL IM635
Command Operation
Page 25
AutoIP
Setting AUTOIP mode will enable the AutoIP function and disable DHCP operation for networks
where a DHCP server is not available. The existing static IP address (if any) will be erased.
You can also use the SET DHCP and SET AUTOIP commands to combine modes and override the
default addressing mode operation selected by this command. If doing so, you should use the
SET IPADDR command prior to using SET DHCP or SET AUTOIP, as it has precedence. For
example, you can use the SET IPADDR
ipaddr
to set a fixed IP, followed by SET DHCP ON to
enable DHCP. The system would attempt to use DHCP, and if unable to obtain an address would
use the static IP address
ipaddr
. Likewise, you can use SET IPADDR DHCP followed by SET
AUTOIP OFF, in which case the system would only use DHCP and would never switch over to
AutoIP mode. You can use the SHOW IPADDR command to view the current address in use, as
well as the status of the DHCP and AUTOIP clients.
Return Value: none
Example(s):
SET IPADDR 10.0.0.2
// sets static IP, disables DHCP and AUTOIP
SET IPADDR DHCP
// enables DHCP (and AutoIP)
SET IPADDR AUTOIP
// enables AutoIP (disables DHCP)
SET GPIB ADDR [address]
Function:
Sets the GPIB bus [address].
Syntax:
Set GPIB addr
[address]
Argument(s):
Address
Sets the bus address to the value chosen, 0 – 30 range.
Remarks:
This function sets the GPIB bus address for both talker and listener functions. The [address]
parameter may be any value from 0 to 30. This command will take effect immediately, and does
not require a reboot. The default setting for the GPIB address is 10.
Return Value: none
Example(s):
SET GPIB ADDR 16 // Sets the GPIB bus address to 16.
SET DHCP
Function:
DHCP client control
Syntax:
SET DHCP
enable
Argument(s):
enable
byte, 0-1 (or OFF/ON)
Remarks:
This function can be used to selectively enable or disable the DHCP client. A value of 0 (or OFF)
disables DHCP, while any other value (or ON) enables DHCP.
Return Value: none
Example(s):
SET DHCP 1
// enable DHCP
SET DHCP ON
// enable DHCP
SET DHCP OFF
// disables DHCP
SET AUTOIP
Function:
AutoIP client control
Syntax:
SET AUTOIP
enable
Argument(s):
enable
byte, 0-1 (or OFF/ON)
Remarks:
This function can be used to selectively enable or disable the AutoIP client. A value of 0 (or OFF)
disables AutoIP, while any other value (or ON) enables AutoIP.
Return Value: none
Example(s):
SET AUTOIP 1
// enable AutoIP
SET AUTOIP ON
// enable AutoIP
SET AUTOIP 0
// disables AutoIP