7. LW3 Programmers’ Reference
RAP-B511 series
– User's Manual
56
7.9. Network Configuration
7.9.1. Query the DHCP State
Command and Response
Ý
GET·/MANAGEMENT/NETWORK.DhcpEnabled
Ü
pw·/MANAGEMENT/NETWORK.DhcpEnabled=false
Parameters
<DHCP_state>
true
: DHCP is enabled
false
: DHCP is disabled
Example
Ý
GET /MANAGEMENT/NETWORK.DhcpEnabled
Ü
pw /MANAGEMENT/NETWORK.DhcpEnabled=true
7.9.2.
Change the DHCP State
Command and Response
Ý
SET·/MANAGEMENT/NETWORK.DhcpEnabled=
<DHCP_state>
Ü
pw·/MANAGEMENT/NETWORK.DhcpEnabled=
<DHCP_state>
Parameters
<DHCP_state>
true
: DHCP is enabled
false
: DHCP is disabled
Example
Ý
SET /MANAGEMENT/NETWORK.DhcpEnabled=false
Ü
pw /MANAGEMENT/NETWORK.DhcpEnabled=false
7.9.3. Query the IP Address
Command and Response
Ý
GET·/MANAGEMENT/NETWORK.IpAddress
Ü
pr·/MANAGEMENT/NETWORK.IpAddress=
<IP_address>
Example
Ý
GET /MANAGEMENT/NETWORK.IpAddress
Ü
pr /MANAGEMENT/NETWORK.IpAddress=192.168.0.100
7.9.4. Change 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
7.9.5. Query the Subnet Mask
Command and Response
Ý
GET·/MANAGEMENT/NETWORK.NetworkMask
Ü
pr
·
/MANAGEMENT/NETWORK.NetworkMask=
<netmask>
Example
Ý
GET /MANAGEMENT/NETWORK.NetworkMask
Ü
pr /MANAGEMENT/NETWORK.NetworkMask=255.255.255.0
7.9.6. Change the Subnet Mask (Static)
Command and Response
Ý
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
7.9.7. Query the Gateway Address
Command and Response
Ý
GET·/MANAGEMENT/NETWORK.GatewayAddress
Ü
pr
·
/MANAGEMENT/NETWORK.GatewayAddress=
<gw_address>
Example
Ý
GET /MANAGEMENT/NETWORK.GatewayAddress
Ü
pr /MANAGEMENT/NETWORK.GatewayAddress=192.168.0.1
7.9.8. Change the Gateway Address (Static)
Command and Response
Ý
SET·/MANAGEMENT/NETWORK.StaticGatewayAddress=
<gw_add>
Ü
pw
·
/MANAGEMENT/NETWORK.StaticGatewayAddress=
<gw_add>
Example
Ý
SET /MANAGEMENT/NETWORK.
StaticGatewayAddress=192.168.0.5
Ü
pw /MANAGEMENT/NETWORK.StaticGatewayAddress=192.168.0.5