7. LW3 Programmers’ Reference
MODEX-F15-OPTS, MODEX-F15-OPTM series – User's Manual
66
7.8. Network Configuration
ATTENTION!
Please note that all settings below will be applied after calling ApplySettings() method or
after the device is restarted next time. See the description of the method in
7.8.1. Query the DHCP State
Command format
:
GET
●
/MANAGEMENT/NETWORK.DhcpEnabled
Response format
:
pw
●
/MANAGEMENT/NETWORK.DhcpEnabled=true|false
Example
:
˃
GET /MANAGEMENT/NETWORK.DhcpEnabled
˂
pw /MANAGEMENT/NETWORK.DhcpEnabled=true
7.8.2. Change the DHCP State
Command format
:
SET
●
/MANAGEMENT/NETWORK.DhcpEnabled=true|false
Response format
:
pw
●
/MANAGEMENT/NETWORK.DhcpEnabled=true|false
Example
:
˃
SET /MANAGEMENT/NETWORK.DhcpEnabled=false
˂
pw /MANAGEMENT/NETWORK.DhcpEnabled=false
7.8.3. Query the IP Address
Command format
:
GET
●
/MANAGEMENT/NETWORK.IpAddress
Response format
:
pr
●
/MANAGEMENT/NETWORK.IpAddress=<>IP_Address>
Example
:
˃
GET /MANAGEMENT/NETWORK.IpAddress
˂
pr /MANAGEMENT/NETWORK.IpAddress=192.168.0.101
7.8.4. Change the IP Address (Static)
Command format
:
SET
●
/MANAGEMENT/NETWORK.StaticIpAddress=<IP_address>
Response format
:
pw
●
/MANAGEMENT/NETWORK.StaticIpAddress=<IP_address>
Example
:
˃
SET /MANAGEMENT/NETWORK.StaticIpAddress=192.168.0.85
˂
pw /MANAGEMENT/NETWORK.StaticIpAddress=192.168.0.85
7.8.5. Query the Subnet Mask
Command format
:
GET
●
/MANAGEMENT/NETWORK.NetworkMask
Response format
:
pr
●
/MANAGEMENT/NETWORK.NetworkMask=<netmask>
Example
:
˃
GET /MANAGEMENT/NETWORK.NetworkMask
˂
pr /MANAGEMENT/NETWORK.NetworkMask=255.255.255.0
7.8.6. Change the Subnet Mask (Static)
Command format
:
SET
●
/MANAGEMENT/NETWORK.StaticNetworkMask=<netmask>
Response format
:
pw
●
/MANAGEMENT/NETWORK.StaticNetworkMask=<netmask>
Example
:
˃
SET /MANAGEMENT/NETWORK.StaticNetworkMask=255.255.255.0
˂
pw /MANAGEMENT/NETWORK.StaticNetworkMask=255.255.255.0
7.8.7. Query the Gateway Address
Command format
:
GET
●
/MANAGEMENT/NETWORK.GatewayAddress
Response format
:
pr
●
/MANAGEMENT/NETWORK.GatewayAddress=<gw_address>
Example
:
˃
GET /MANAGEMENT/NETWORK.GatewayAddress
˂
pr /MANAGEMENT/NETWORK.GatewayAddress=192.168.0.1
7.8.8. Change the Gateway Address (Static)
Command format
:
SET
●
/MANAGEMENT/NETWORK.StaticGatewayAddress=<gw_address>
Response format
:
pw
●
/MANAGEMENT/NETWORK.StaticGatewayAddress=<gw_address>
Example
:
˃
SET /MANAGEMENT/NETWORK.StaticGatewayAddress=192.168.0.5
˂
pw /MANAGEMENT/NETWORK.StaticGatewayAddress=192.168.0.5
7.8.9.
Apply Network Settings
Command format
:
CALL
●
/MANAGEMENT/NETWORK:ApplySettings()
Response format
:
m0
●
/MANAGEMENT/NETWORK: ApplySettings
Example
:
˃
CALL /MANAGEMENT/NETWORK:ApplySettings()
˂
m0 /MANAGEMENT/NETWORK:ApplySettings
Explanation
: all network settings which are changed have been applied.