WAN_TYPE
Description
Get or Set WAN connection type. Three types, Dynamic, Static and PPPoE, are supported.
In Dynamic connection type, the device will try to get the IP/Netmask/Gateway/DNS settings from a DHCP server.
In Static connection type, the device will use WAN_IP, WAN_NETMASK and WAN_GATEWAY to configure its WAN port.
In PPPoE connection type, the device will try to establish the PPP connection. The WAN_PPPOE_USERNAME and WAN_PPPOE_PASSWORD will be used for authentication.
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 connection type will be returned.
Input Argument
1: Dynamic
2: Static
3: PPPoE
Attribute
Return of Message
WAN_TYPE='1'
OK: WAN_TYPE='1'
or
ERROR: WAN_TYPE='1'
Applicability
Status
Valid
See Also
WAN, WAN_STATUS, V2_WAN_STATUS, WAN_IP, WAN_NETMASK, WAN_GATEWAY, WAN_PPPOE_USERNAME, WAN_PPPOE_PASSWORD
Example
http://ip:port/cgi-bin/system?USER=Admin&PWD=123456&WAN_TYPE
or
http://ip:port/cgi-bin/cmd/system?WAN_TYPE
http://ip:port/cgi-bin/system?USER=Admin&PWD=123456&WAN_TYPE=1
or
http://ip:port/cgi-bin/cmd/system?WAN_TYPE=1
Back to