Hi everyone. I was using 10.3.1 with my router TP-LINK WR1043ND. But this version have a bug with wifi driver... that keeps halting it in intense usage (like transferring a file between two machines).
So, I changed to trunk, but the UCI changed. I use a script wrote by myself for checking my internet connectivity. My connection halts sometime... and I need to restart the wan interface to get it back working. I don't know why this happens... but doing a "ifdown wan" sleep.. "ifup wan", get everything working again. But my WAN interface is DHCP, and my connection is throw a cable-modem (working as a brigde), so my IP address is public, and random, as my gateway, My script, uses the UCI to get the current IP address, and the current gateway IP address. So I can ping the gateway, and in case of no response, restart the connection. It worked very well in 10.3.1. But in trunk, the UCI don't show the current IP address, and the current gateway IP address... so I'm unable to test the connectivity. How can I get the current IP address from the wan interface with the new UCI? And the gateway IP address too? The commands that I use: root@OpenWrt:/tmp/state# uci -P/var/state get network.wan.ipaddr uci: Entry not found root@OpenWrt:/tmp/state# uci -P/var/state get network.wan.gateway uci: Entry not found root@OpenWrt:/tmp/state# uci -P/var/state show network.wan network.wan=interface network.wan.ifname=eth0.2000 network.wan._orig_ifname=eth0.2 network.wan._orig_bridge=false network.wan.proto=dhcp network.wan.peerdns=0 network.wan.dns=208.67.222.222 208.67.220.220 network.wan.up=1 network.wan.connect_time=16341 network.wan.device=eth0.2000 root@OpenWrt:/tmp/state# Thanks in advance. -- Rafael Henrique da Silva Faria
_______________________________________________ openwrt-users mailing list [email protected] https://lists.openwrt.org/mailman/listinfo/openwrt-users
