LAN_IP, LAN_NETMASK

Description

Get or Set IP or Netmask address of LAN port.

In Multi-Channel device, this URL is read-only command and the Router's LAN port setting will be returned no matter the CHANNEL=n was set with this URL or not.

Input Argument

IPv4 Addressing (xxx.xxx.xxx.xxx)

Attribute

Return of Message

LAN_IP='192.168.1.254'
LAN_NETMASK='255.255.255.0'
OK: LAN_IP='192.168.1.254'
OK: LAN_NETMASK='255.255.255.0'
or
ERROR: LAN_IP='192.168.1.254'
ERROR: LAN_NETMASK='255.255.255.0'

Applicability

Status

Valid

See Also

LAN, LAN_HOSTNAME

Example

http://ip:port/cgi-bin/system?USER=Admin&PWD=123456&LAN_IP
http://ip:port/cgi-bin/system?USER=Admin&PWD=123456&LAN_NETMASK
or
http://ip:port/cgi-bin/cmd/system?LAN_IP
http://ip:port/cgi-bin/cmd/system?LAN_NETMASK
http://ip:port/cgi-bin/system?USER=Admin&PWD=123456&LAN_IP=192.168.1.254
http://ip:port/cgi-bin/system?USER=Admin&PWD=123456&LAN_NETMASK=255.255.255.0
or
http://ip:port/cgi-bin/cmd/system?LAN_IP=192.168.1.254
http://ip:port/cgi-bin/cmd/system?LAN_NETMASK=255.255.255.0

Back to

HOME, SYSTEM CGI