Get the WAN port runtime status. It is similar to WAN_STATUS but NOT perform the connectivity and DNS test. That support the fast response of requesting the WAN port runtime information.
The WAN port runtime information includesThe WAN_IP, WAN_NETMASK and WAN_GATEWAY are the runtime settings. They are updated by DHCP server or PPPoE server when the connection type is DHCP or PPPoE.
- WAN_TYPE
- WAN_IP
- WAN_NETMASK
- WAN_GATEWAY
- DNS_PRIMARY
- DNS_SECONDARY
- MAC
- BONJOUR_CONFIG
- LLIP
- IPv6
And, DNS_PRIMARY and DNS_SECONDARY are runtime DNS settings, read from /etc/resolv.conf. They might be set by DHCP server or PPPoE server if these settings in the firmware are NULL. When device has no DNS server settings, the firmware gives DNS_PRIMARY='' and DNS_SECONDARY=''
The DNS_PRIMARY, DNS_SECONDARY, MAC, BONJOUR_CONFIG and LLIP are new added in the return of this URL.
MAC is the MAC address of WAN port.
The LLIP is the link local IP address generated by Bonjour protocol if Bonjour function is enabled. When device has no link local IP address, the firmware gives LLIP=''
The IPv6 is the IPv6 address. When the device does not support IPv6, the firmware gives IPv6=''If the CHANNEL=n was set with this URL to the multiple channel video encoder, the router's WAN port runtime information will be returned.
None
WAN_TYPE='1'
WAN_IP='192.168.0.100'
WAN_NETMASK='255.255.255.0'
WAN_GATEWAY='192.168.0.254'
DNS_PRIMARY=''
DNS_SECONDARY=''
MAC='00:0f:7c:00:00:01'
BONJOUR_CONFIG='1,IPCAM-00001'
LLIP='169.254.153.226'
IPv6='fe80::221:85ff:fe70:74f2/64'
Valid
WAN, WAN_STATUS, WAN_TYPE, WAN_IP, WAN_NETMASK, WAN_GATEWAY, WAN_PPPOE_USERNAME, WAN_PPPOE_PASSWORD
http://ip:port/cgi-bin/system?USER=Admin&PWD=123456&V2_WAN_STATUS
or
http://ip:port/cgi-bin/cmd/system?V2_WAN_STATUS
Back to