PPPoE users might not have eth0 as their WAN interface. I recommend replacing it with this code:
Code:$(nvram get wan0_ifname)
I use AP-mode and your command returns with eth0 like from recent script.
uuuuu@RT-AC68U:/tmp/mnt/2GB_stick# nvram get wan0_ifname
eth0
So for me dont think thats the problem, or?
Up to this point, the script is able to:IP seems to be seen correct but not updated to asus-DDNS, public_IP and MYIP is same as on modem 62.46.xxx.xxx:
zzzzz@RT-AC68U:/tmp/mnt/2GB_stick# sh ./update-ddns-asuswrt.sh
PUBLIC_IP : '62.46.xxx.xxx'
DDNS_IP : '62.47.yyy.yyy'
/tmp/myip : 62.46.xxx.xxx
MYIP : '62.46.xxx.xxx'
used this command for testing update
zzzzz@RT-AC68U:/tmp/mnt/2GB_stick# /usr/sbin/ez-ipupdate -S dyndns -i eth0 -a 62.46.1.1 -h my-name.asuscomm.com -A 2 -s nwsrv-ns1.asus.com
ez-ipupdate Version 3.0.11b5
Copyright (C) 1998-2001 Angus Mackay.
read_input ret: 1
read_input ret: 1
Update failed. (203)
/usr/sbin/ez-ipupdate -S dyndns -i eth0 -a 62.46.1.1 -h my-name.asuscomm.com -A 2 -s nwsrv-ns1.asus.com
NOIP_USERNAME="[your-username-at-noip.com]"
NOIP_PASSWORD="[your-password-at-noip.com]"
NOIP_DDNS_HOSTNAME="[your-hostname].ddns.net"
..
WGET_USER_AGENT="--user-agent='$SCRIPT_NAME/1 [your-email]'"
DYNU_PASSWORD="[your-username-at-dynu.com]"
...
DYNU_DDNS_HOSTNAME="[your-hostname].ddnsfree.com"
...
WGET_USER_AGENT="--user-agent='$SCRIPT_NAME/v1+[your-email]'"
Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!