7. LW3 Programmers’ Reference
UCX series – User's Manual
125
Applied firmware package: v1.2.0b9 | LDC software: v2.5.10b1
8.13. Ethernet Port Configuration
8.13.1.
Set the DHCP State
ATTENTION!
When you change a network property the new value is stored but the
applySettings
method
must be called always 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; it results the device to reboot.
Command and Response
#dhcp #network
#ipaddress
ç
SET·/V1/MANAGEMENT/NETWORK.DhcpEnabled=
<dhcp_status>
æ
pw
·/V1
/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 /V1/MANAGEMENT/NETWORK.DhcpEnabled=true
æ
pw /V1/MANAGEMENT/NETWORK.DhcpEnabled=true
ç
CALL /V1/MANAGEMENT/NETWORK:applySettings()
æ
mO /V1/MANAGEMENT/NETWORK:applySettings
INFO:
The
applySettings
method will save and apply the new value and results the device to reboot.
INFO:
The current setting can be queried by using the
8.13.2.
Change the IP Address (Static)
Command and Response
ç
SET·/V1/MANAGEMENT/NETWORK.StaticIpAddress=
<IP_address>
æ
pw
·/V1
/MANAGEMENT/NETWORK.StaticIpAddress=
<IP_address>
Example
ç
SET /V1/MANAGEMENT/NETWORK.StaticIpAddress=192.168.0.85
æ
pw /V1/MANAGEMENT/NETWORK.StaticIpAddress=192.168.0.85
ç
CALL /V1/MANAGEMENT/NETWORK:applySettings()
æ
mO /V1/MANAGEMENT/NETWORK:applySettings
INFO:
The
applySettings
method will save and apply the new value and results the device to reboot.
INFO:
The current setting can be queried by using the
8.13.3.
Change the Subnet Mask (Static)
Command and Response
#ipaddress
ç
SET·/V1/MANAGEMENT/NETWORK.StaticNetworkMask=
<netmask>
æ
pw
·/V1
/MANAGEMENT/NETWORK.StaticNetworkMask=
<netmask>
Example
ç
SET /V1/MANAGEMENT/NETWORK.StaticNetworkMask=255.255.255.0
æ
pw /V1/MANAGEMENT/NETWORK.StaticNetworkMask=255.255.255.0
ç
CALL /V1/MANAGEMENT/NETWORK:applySettings()
æ
mO /V1/MANAGEMENT/NETWORK:applySettings
INFO:
The
applySettings
method will save and apply the new value and results the device to reboot.
INFO:
The current setting can be queried by using the
.
8.13.4.
Change the Gateway Address (Static)
Command and Response
ç
SET·/V1/MANAGEMENT/NETWORK.StaticGatewayAddress=
<gw_address>
æ
pw
·/V1
/MANAGEMENT/NETWORK.StaticGatewayAddress=
<gw_address>
Example
ç
SET /V1/MANAGEMENT/NETWORK.StaticGatewayAddress=192.168.0.5
æ
pw /V1/MANAGEMENT/NETWORK.StaticGatewayAddress=192.168.0.5
ç
CALL /V1/MANAGEMENT/NETWORK:applySettings()
æ
mO /V1/MANAGEMENT/NETWORK:applySettings
INFO:
The
applySettings
method will save and apply the new value and results the extender to reboot.
INFO:
The current setting can be queried by using the
.
8.13.5.
Apply Network Settings
Command and Response
ç
CALL·/V1/MANAGEMENT/NETWORK:applySettings()
æ
m0·/V1/MANAGEMENT/NETWORK:applySettings
Example
ç
CALL /V1/MANAGEMENT/NETWORK:applySettings()
æ
m0 /V1/MANAGEMENT/NETWORK:applySettings
All network settings which are changed have been applied and network interface restarts.