opkg updateopkg Install ddns-scripts Luci-app-ddns
Download the Ddns script with the above command, edit the configuration file
Vi/etc/config/ddns
Configured as follows
Config Service"Myddns"option enabled"1"optionInterface "Wan"option Use_syslog"0"o Ption service_name"gicp.net"
#注意下面domain要换成你自己的domain option Domain"user.gicp.net"
#username要更换为你自己的username option Username"username"
#passwd换成你自己的passwd option Password"passwd"option Use_https"0"o Ption Force_interval" -"option Force_unit"hours"option Check_interval"Ten"option Check_unit"minutes"option Retry_interval" -"option Retry_unit"seconds"#option Ip_source"Network"#option ip_network"Wan"#opti On Ip_source"Interface"#option Ip_interface"Pppoe-wan"#option Ip_ SOURCE"Script"#option Ip_script"path to your scrip"
#使用网络来检测自己的公网IP option Ip_source"Web"option Ip_url"Http://ddns.oray.com/checkip"
#oray的ip地址更新格式 option Update_url"Http://[username]:[password] @ddns. Oray.com/ph/update?hostname=[domain]&myip=[ip]"
After the configuration is complete, enable DDNS
/etc/init.d/ddns start
Configure on Start
/etc/init.d/ddns Enable
Finally accomplished:
C:\Documents and Settings\administrator>ping user.gicp.net
Pinging user.gicp.net [117.83.194.126] with + bytes of data:
Reply from 117.83.194.126:bytes=32 time=1ms ttl=64
Reply from 117.83.194.126:bytes=32 time<1ms ttl=64
Reply from 117.83.194.126:bytes=32 time<1ms ttl=64
Reply from 117.83.194.126:bytes=32 time=1ms ttl=64
Ping statistics for 117.83.194.126:
Packets:sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in Milli-seconds:
Minimum = 0ms, Maximum = 1ms, Average = 0ms
OPENWRT text (shell) configuration supports Oray peanut shells DDNS