DHCP (DH)
| Function | Enables/disables DHCP for the device |
| Set (S) command format | SDHx, where x: 0 (disabled), 1 (enabled) |
| Get (G) command format | GDH |
| Initialize (I) command effect | Initialized unconditionally, through network command, or serial command |
| Post-initialization value | 0 (disabled) |
| Change takes effect | After reboot |
This setting defines whether the device will use a fixed IP-address, defined by the IP-address (IP) setting or will obtain its IP-address from the DHCP server at power up . DHCP server must be present on the network for this to work. The device will not start normal operation until it receives the IP-address.
IP-address obtained from the DHCP server is saved into the IP-address (IP) setting thus overwriting the previous setting value that might have been set manually.
IP-address status (obtained/ not obtained) of the device is returned by the Echo (X) command.
In addition to the IP-address configuration, the DHCP server is usually configured to provide default Gateway IP-address and netmask. If this is the case, then Gateway IP-address (GI) and Netmask (NM) settings will also be overwritten by the data from the DHCP server.