WAN_ADDRESS

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

- Readable and Writable (except the video server in Multi-Channel Platform)
- Not On-Fly

Return of Message

- Read Operation

> WAN_IP='192.168.0.100'
> WAN_NETMASK='255.255.255.0'
> WAN_GATEWAY='192.168.0.254'

- Write Operation

> 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

- WPL Platform : All Devices
- EPL Platform : All Devices
- PlatfotmT : All Devices
- Multi-Channel Encoder : All Devices

Status

> Valid

See Also

> WAN, WAN_STATUS, V2_WAN_STATUS, WAN_PPPOE_USERNAME, WAN_PPPOE_PASSWORD

Example

- Read Operation

> 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

- Write Operation

> 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

> HOME, SYSTEM CGI