7. LW3 Programmers’ Reference
MMX4x2 series – User's Manual
112
Applied firmware package: v1.6.0b19 | LDC software: v2.5.13b5
7.12. Ethernet Port Configuration
7.12.1.
Setting the DHCP State
ATTENTION!
When you change a network property, the new value is stored, but the
ApplySettings
method
must always be called to apply the new settings. When two or more network parameters are changed, the
ApplySettings
method is enough to call once as a final step.
Command and Response
#dhcp #network
#ipaddress
ç
SET·/MANAGEMENT/NETWORK.DhcpEnabled=
<dhcp_status>
æ
pw·/MANAGEMENT/NETWORK.DhcpEnabled=
<dhcp_status>
Parameters
If the
<dhcp_status>
parameter is
true
, the current IP address setting is DHCP, if the parameter is
false,
the
current IP address is static.
Example
ç
SET /MANAGEMENT/NETWORK.DhcpEnabled=true
æ
pw /MANAGEMENT/NETWORK.DhcpEnabled=true
ç
CALL /MANAGEMENT/NETWORK:ApplySettings()
æ
mO /MANAGEMENT/NETWORK:ApplySettings
INFO:
The
ApplySettings
method will save and apply the new value and will reboot the device.
INFO:
The current setting can be queried by the
7.12.2.
Changing the IP Address (Static)
Command and Response
ç
SET·/MANAGEMENT/NETWORK.StaticIpAddress=
<IP_address>
æ
pw·/MANAGEMENT/NETWORK.StaticIpAddress=
<IP_address>
Example
ç
SET /MANAGEMENT/NETWORK.StaticIpAddress=192.168.0.85
æ
pw /MANAGEMENT/NETWORK.StaticIpAddress=192.168.0.85
ç
CALL /MANAGEMENT/NETWORK:ApplySettings()
æ
mO /MANAGEMENT/NETWORK:ApplySettings
INFO:
The
ApplySettings
method will save and apply the new value and will reboot the device.
INFO:
The current setting can be queried by the
7.12.3.
Changing the Subnet Mask (Static)
Command and Response
#ipaddress
ç
SET·/MANAGEMENT/NETWORK.StaticNetworkMask=
<netmask>
æ
pw·/MANAGEMENT/NETWORK.StaticNetworkMask=
<netmask>
Example
ç
SET /MANAGEMENT/NETWORK.StaticNetworkMask=255.255.255.0
æ
pw /MANAGEMENT/NETWORK.StaticNetworkMask=255.255.255.0
ç
CALL /MANAGEMENT/NETWORK:ApplySettings()
æ
mO /MANAGEMENT/NETWORK:ApplySettings
INFO:
The
ApplySettings
method will save and apply the new value and will reboot the device.
INFO:
The current setting can be queried by using the
.
7.12.4.
Changing the Gateway Address (Static)
Command and Response
ç
SET·/MANAGEMENT/NETWORK.StaticGatewayAddress=
<gw_address>
æ
pw·/MANAGEMENT/NETWORK.StaticGatewayAddress=
<gw_address>
Example
ç
SET /MANAGEMENT/NETWORK.StaticGatewayAddress=192.168.0.5
æ
pw /MANAGEMENT/NETWORK.StaticGatewayAddress=192.168.0.5
ç
CALL /MANAGEMENT/NETWORK:ApplySettings()
æ
mO /MANAGEMENT/NETWORK:ApplySettings
INFO:
The
ApplySettings
method will save and apply the new value and will reboot the device.
INFO:
The current setting can be queried by using the
.
7.12.5.
Applying Network Settings
Command and Response
ç
CALL·/MANAGEMENT/NETWORK:ApplySettings()
æ
m0·/MANAGEMENT/NETWORK:ApplySettings
Example
ç
CALL /MANAGEMENT/NETWORK:ApplySettings()
æ
m0 /MANAGEMENT/NETWORK:ApplySettings
All network settings that are changed are applied and network interface restarts.