Difference between revisions of "DDclient Dual Wan 2 Wan Clarkconnect"
From MS Computech
Line 5: | Line 5: | ||
</pre> | </pre> | ||
แตกไฟล์ออกมาไว้ที่ / | แตกไฟล์ออกมาไว้ที่ / | ||
− | <pre>tar zxvf ddclientv3.8.0-Dualwan.tar.gz / | + | <pre>[root@gw ~]# tar zxvf ddclientv3.8.0-Dualwan.tar.gz / |
</pre> | </pre> | ||
แก้ไข ddclient.conf << Link ppp0 | แก้ไข ddclient.conf << Link ppp0 | ||
− | <pre>nano /etc/ddclient/ddclient.conf | + | <pre>[root@gw ~]# nano /etc/ddclient/ddclient.conf |
# ddclient configuration file | # ddclient configuration file | ||
Line 31: | Line 31: | ||
</pre> | </pre> | ||
แก้ไข ddclient2.conf << Link ppp1 | แก้ไข ddclient2.conf << Link ppp1 | ||
− | <pre>nano /etc/ddclient/ddclient2.conf | + | <pre>[root@gw ~]# nano /etc/ddclient/ddclient2.conf |
# ddclient configuration file | # ddclient configuration file | ||
Line 54: | Line 54: | ||
</pre> | </pre> | ||
ทำให้ Startup ( Clarkconnect, FC ) | ทำให้ Startup ( Clarkconnect, FC ) | ||
− | <pre>chmod 755 /etc/ddclient/ddcli* | + | <pre> |
− | chmod 755 /etc/init.d/ddcli* | + | [root@gw ~]# chmod 755 /etc/ddclient/ddcli* |
− | chmod 755 /usr/sbin/ddcli* | + | [root@gw ~]# chmod 755 /etc/init.d/ddcli* |
− | chkconfig --add ddclient | + | [root@gw ~]# chmod 755 /usr/sbin/ddcli* |
− | chkconfig --add ddclient2 | + | [root@gw ~]# chkconfig --add ddclient |
− | chkconfig ddclient on | + | [root@gw ~]# chkconfig --add ddclient2 |
− | chkconfig ddclient2 on | + | [root@gw ~]# chkconfig ddclient on |
+ | [root@gw ~]# chkconfig ddclient2 on | ||
</pre> | </pre> | ||
ทำให้ Startup ( DEB ) | ทำให้ Startup ( DEB ) | ||
− | <pre>chmod 755 /etc/ddclient/ddcli* | + | <pre> |
− | chmod 755 /etc/init.d/ddcli* | + | [root@gw ~]# chmod 755 /etc/ddclient/ddcli* |
− | chmod 755 /usr/sbin/ddcli* | + | [root@gw ~]# chmod 755 /etc/init.d/ddcli* |
− | update-rc.d ddclient defaults | + | [root@gw ~]# chmod 755 /usr/sbin/ddcli* |
− | update-rc.d ddclient2 defaults | + | [root@gw ~]# update-rc.d ddclient defaults |
+ | [root@gw ~]# update-rc.d ddclient2 defaults | ||
</pre> | </pre> | ||
สั่งรัน | สั่งรัน | ||
− | <pre>/etc/init.d/ddclient start | + | <pre> |
− | /etc/init.d/ddclient2 start | + | [root@gw ~]# /etc/init.d/ddclient start |
+ | [root@gw ~]# /etc/init.d/ddclient2 start | ||
</pre> | </pre> | ||
ตรวจสอบ | ตรวจสอบ |
Revision as of 12:01, 15 June 2009
DDclient Dual Wan 2 Wan Clarkconnect 4x 5x fc redhat debian etch lenny
ดาวโหลดไฟล์
http://rapidshare.com/files/244672176/ddclientv3.8.0-Dualwan.tar.gz
แตกไฟล์ออกมาไว้ที่ /
[root@gw ~]# tar zxvf ddclientv3.8.0-Dualwan.tar.gz /
แก้ไข ddclient.conf << Link ppp0
[root@gw ~]# nano /etc/ddclient/ddclient.conf # ddclient configuration file daemon=600 # check every 600 seconds syslog=yes # log update msgs to syslog [email protected] # Mail failed updates to user pid=/var/run/ddclient.pid # record PID in file. ## Detect IP with our CheckIP server use=web, web=checkip.dyndns.com/, web-skip='IP Address' use=if, if=ppp0 ## DynDNS username and password here login=yourusername #<< ใส่ username password=yourpassword #<< ใส่ password ## Default options protocol=dyndns2 server=members.dyndns.org ## Dynamic DNS hosts yourdynamicname.dyndns.org #<< ใส่ชื่อ dyndns
แก้ไข ddclient2.conf << Link ppp1
[root@gw ~]# nano /etc/ddclient/ddclient2.conf # ddclient configuration file daemon=600 # check every 600 seconds syslog=yes # log update msgs to syslog [email protected] # Mail failed updates to user pid=/var/run/ddclient2.pid # record PID in file. ## Detect IP with our CheckIP server use=web, web=checkip.dyndns.com/, web-skip='IP Address' use=if, if=ppp1 ## DynDNS username and password here login=yourusername #<< ใส่ username password=yourpassword #<< ใส่ password ## Default options protocol=dyndns2 server=members.dyndns.org ## Dynamic DNS hosts yourdynamicname2.dyndns.org #<< ใส่ชื่อ dyndns
ทำให้ Startup ( Clarkconnect, FC )
[root@gw ~]# chmod 755 /etc/ddclient/ddcli* [root@gw ~]# chmod 755 /etc/init.d/ddcli* [root@gw ~]# chmod 755 /usr/sbin/ddcli* [root@gw ~]# chkconfig --add ddclient [root@gw ~]# chkconfig --add ddclient2 [root@gw ~]# chkconfig ddclient on [root@gw ~]# chkconfig ddclient2 on
ทำให้ Startup ( DEB )
[root@gw ~]# chmod 755 /etc/ddclient/ddcli* [root@gw ~]# chmod 755 /etc/init.d/ddcli* [root@gw ~]# chmod 755 /usr/sbin/ddcli* [root@gw ~]# update-rc.d ddclient defaults [root@gw ~]# update-rc.d ddclient2 defaults
สั่งรัน
[root@gw ~]# /etc/init.d/ddclient start [root@gw ~]# /etc/init.d/ddclient2 start
ตรวจสอบ
[root@gw ~]# ps ax | grep ddcli 9071 pts/1 S+ 0:00 grep ddcli 25405 pts/1 S 0:00 ddclient - sleeping for 380 seconds 25434 pts/1 S 0:00 ddclient2 - sleeping for 380 seconds