SWRU455M February 2017 – October 2020 CC3120 , CC3120MOD , CC3130 , CC3135 , CC3135MOD , CC3220MOD , CC3220MODA , CC3220R , CC3220S , CC3220SF , CC3230S , CC3230SF , CC3235MODAS , CC3235MODASF , CC3235MODS , CC3235MODSF , CC3235S , CC3235SF
Many IP settings can be configured from the HTTP interface by sending a POST request to either /api/1/netapp/netcfg_sta, /api/1/netapp/netcfg_sta_ipv6, or /api/1/netapp/netcfg_ap URLs with some (or all) of the parameters listed in Table 10-4.
Name (code) | Description | Example |
---|---|---|
STA mode IP (__SL_P_N.A) | Device IP in station mode | (__SL_P_N.A=192.168.10.10) |
AP mode IP (__SL_P_N.P) | Device IP in AP mode | (__SL_P_N.P=192.168.10.10) |
STA mode netmask (__SL_P_N.B) | Device subnet mask in station mode | (__SL_P_N.B=255.255.255.0) |
AP mode netmask (__SL_P_N.Q) | Device subnet mask in access point mode | (__SL_P_N.Q=255.255.255.0) |
STA Gateway (__SL_P_N.C) | Network gateway IP in station mode | (__SL_P_N.C=192.168.10.1) |
AP Gateway (__SL_P_N.T) | Network gateway IP in AP mode | (__SL_P_N.T=192.168.10.1) |
Address of primary STA DNS server (__SL_P_N.H) | Address of primary DNS server in station mode | (__SL_P_N.H=8.8.8.8) |
Address of primary AP DNS server (__SL_P_N.U) | Address of primary DNS server in AP mode | (__SL_P_N.U=8.8.8.8) |
IPv4 mode (__SL_P_N.D) | IP acquisition mode for IPv4 address. Options are: LLA DHCP, DHCP, and Static | (__SL_P_N.D=DHCP) |
IPv6 Local mode (__SL_P_I.S) | IP acquisition mode for local IPv6 address. Options are: Stateless, Static, and Statefull | (__SL_P_I.S=Disable, __SL_P_I.S =Stateless, __SL_P_I.S =Static, __SL_P_I.S =Statefull) |
IPv6 Local address (__SL_P_I.L) | Set the IPv6 link-local address (if local mode is set to Static) | (__SL_P_I.S=fe80::ccaf:9519:0002:a5fd) |
IPv6 Global mode (__SL_P_I.G) | IP acquisition mode for global IPv6 address. Options are: Stateless, Static, and Statefull | (__SL_P_I.G=Disable, __SL_P_I.G =Stateless, __SL_P_I.G =Static, __SL_P_I.G =Statefull) |
IPv6 Global address (__SL_P_I.B) | Set the IPv6 global address (if global mode is set to Static) | (__SL_P_I.B==2001:0db8:3c4d:0015:0000:0000:1a2f:1a2b) |
IPv6 DNS address (__SL_P_I.K) | Set IPv6 primary DNS server | (__SL_P_I.K= 2001:4860:4860::8888) |
For example, the following request sets the AP mode IP address to 10.10.10.10 without DHCP (Static):
POST /api/1/netapp/netcfg_ap HTTP/1.1
Host: mysimplelink.net
Content-Type: application/x-www-form-urlencoded
__SL_P_N.P=10.10.10.10&__SL_P_N.D=Static