EasyCwmp - easycwmp
View Issue Details
0000013easycwmp[All Projects] Helppublic2014-09-26 21:462014-09-30 09:58
0000013: Cannot get IP address
I use get value command to get "InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.1.ExternalIPAddress", which turns out to be empty, also I can't see AP'IP on server. Is this suppose to be like this? Thanks in advance!
No tags attached.
jpg 2014-09-26 15.44.30.jpg (4,319,595) 2014-09-26 21:46
jpg 2014-09-26 15.44.48.jpg (2,701,850) 2014-09-26 21:47
Issue History
2014-09-26 21:46CwmpUserNew Issue
2014-09-26 21:46CwmpUserFile Added: 2014-09-26 15.44.30.jpg
2014-09-26 21:47CwmpUserFile Added: 2014-09-26 15.44.48.jpg
2014-09-29 10:28mohamed.kallelNote Added: 0000056
2014-09-29 10:29mohamed.kallelNote Edited: 0000056bug_revision_view_page.php?bugnote_id=56#r54
2014-09-29 20:37CwmpUserNote Added: 0000057
2014-09-29 20:39CwmpUserNote Deleted: 0000057
2014-09-29 20:48CwmpUserNote Added: 0000058
2014-09-29 21:13CwmpUserNote Deleted: 0000058
2014-09-30 09:58AnisStatusnew => resolved
2014-09-30 09:58AnisResolutionopen => fixed
2014-09-30 09:58AnisAssigned To => Anis

2014-09-29 10:28   
(edited on: 2014-09-29 10:29)
You have to update the wan_device script.
The wan_device script is under the "ext/openwrt/scripts/functions/" in the source code. And its under "/usr/share/easycwmp/functions" in your openwrt firmware.

In the wan_device script, you have to change the function: "get_wan_device_mng_interface_ip()". you have to change the line: "network_get_ipaddr val mng". Change the "mng" by the name of you wan interface.

The same thing for the "InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.1.MACAddress", you have to change the function "get_wan_device_mng_interface_mac()". you have to change the "val=`$UCI_GET network.mng.macaddr`" by "val=`$UCI_GET network.<your_wan_interface>.macaddr`"