WAN_IP, WAN_NETMASK, WAN_GATEWAY
Description
Get or Set IP, Netmask or Gateway address of WAN port. These Settings are only valid if only of the WAN_TYPE is Static. If the WAN_TYPE is Dynamic, these settings will be applied if the device fails of getting the address from the DHCP server. The argument of these URL will be checked before apply them. The check mechanism is
- WAN_IP has to be an unicast IP address.
- WAN_NETMASK has to be followed the rule of IP Netmask.
- WAN_GATEWAY has to be an unicast IP address
Because these URLs are sent separately, the device is not able to check if the WAN_IP and WAN_GATEWAY are in the same subnet.
If the CHANNEL=n was set with this URL to the Multi-Channel device, this URL will be treated as read-only command and the Router's WAN port setting will be returned.
Input Argument
IPv4 Addressing (xxx.xxx.xxx.xxx)
Attribute
Return of Message
WAN_IP='192.168.0.100'
WAN_NETMASK='255.255.255.0'
WAN_GATEWAY='192.168.0.254'
OK: WAN_IP='192.168.0.100'
OK: WAN_NETMASK='255.255.255.0'
OK: WAN_GATEWAY='192.168.0.254'
or
ERROR: WAN_IP='192.168.0.100'
ERROR: WAN_NETMASK='255.255.255.0'
ERROR: WAN_GATEWAY='192.168.0.254'
Applicability
Status
Valid
See Also
WAN, WAN_STATUS, V2_WAN_STATUS, WAN_PPPOE_USERNAME, WAN_PPPOE_PASSWORD
Example
http://ip:port/cgi-bin/system?USER=Admin&PWD=123456&WAN_IP
http://ip:port/cgi-bin/system?USER=Admin&PWD=123456&WAN_NETMASK
http://ip:port/cgi-bin/system?USER=Admin&PWD=123456&WAN_GATEWAY
or
http://ip:port/cgi-bin/cmd/system?WAN_IP
http://ip:port/cgi-bin/cmd/system?WAN_NETMASK
http://ip:port/cgi-bin/cmd/system?WAN_GATEWAY
http://ip:port/cgi-bin/system?USER=Admin&PWD=123456&WAN_IP=192.168.0.100
http://ip:port/cgi-bin/system?USER=Admin&PWD=123456&WAN_NETMASK=255.255.255.0
http://ip:port/cgi-bin/system?USER=Admin&PWD=123456&WAN_GATEWAY=192.168.0.254
or
http://ip:port/cgi-bin/cmd/system?WAN_IP=192.168.0.100
http://ip:port/cgi-bin/cmd/system?WAN_NETMASK=255.255.255.0
http://ip:port/cgi-bin/cmd/system?WAN_GATEWAY=192.168.0.254
Back to