Monday, September 27, 2010

Load Balance

ยี่ห้อนี้น่าจะดี มีให้เลือกใช้ได้ 7 algorithms
http://www.peplink.com/technology/load-balancing-algorithms/
http://www.3gig.com/peplink/

Linksys RV042


1. ที่ modem set เป็น bridge mode ค่าต่างๆ เช่น VPI/VCI ตั้งไว้ด้วย
2. ที่ router set เป็น PPPoE พร้อมกับใส่ user/pass
3. DDNS จะแบ่งเป็น 3 ช่อง ให้ใส่ทีละช่อง ถ้าใส่ที่ช่องแรก จะไม่ยอมทำงาน
4. เมื่อ modem ถูก set ให้เป็น bridge mode แล้วคุณสมบัติอื่นๆจะใช้ไม่ได้เช่น port ที่ forward เอาไว้หรือ DDNS และการ config modem จะต้องเอาสาย lan ไปต่อตรงเท่านั้น

Note
- อาจจะเกิดกรณีที่บาง ISP ปิดการ ping Default Gateway เอาไว้ทำให้ wan บางอันไม่ได้ถูกใช้งานเลย
ให้ทดสอบโดยการลอง ping defaut gateway ดูว่าได้หรือไม่ ถ้าไม่ได้ก็ ปิดการ ping default gateway ไปแล้วให้ไป ping อย่างอื่นแทน

Friday, September 24, 2010

Convert Firmware .BIN to .TRX

Firmware ของ OpenWRT จะเป็น .trx ไม่สามารถเอา firmware ของ tomato หรือ dd-wrt ที่เป็น .bin มาใส่ได้
โดยตรง จะต้องแปลง .bin ให้เป็น .trx ก่อน ซึ่งเป็นการตัด 32 byte แรกออก โดยใช้คำสั่ง

dd bs=32 skip=1 if=tomato.bin of=tomato.trx

คำสั่ง dd เป็นคำสั่งที่มีอยู่ใน Linux แทบทุกระบบ เช่นใน Endian Firewall เองก็มี

เมื่อได้ไฟล์ .trx มาแล้วสามารถ upgrade firmware ของ WRT54GL ได้โดยตรงจากทาง หน้าเวปเลยหรือ อาจจะใช้ command line ก็ได้โดยใช้คำสั่ง

mtd -r write tomato.trx linux

Sunday, September 19, 2010

Endian Firewall 2.3 to 2.4

วิธี upgrade endian firewall
ใช้ ssh login เข้าไปแล้วสั่งคำสั่ง efw-upgrade
เสร็จแล้วให้ใส่ user ที่สมัครเอาไว้กับ endian community จะ upgrade ให้เองอัตโนมัติ

วิธีแก้ปัญหาเข้าบางเวปไม่ได้ เช่น Google เหมือนกับ resolve dns ผิด ให้ลองเข้าไปที่ Proxy/DNS/Anti-Spyware แล้ว disable ออกให้หมด

การ copy file เข้าไปใส่ใน endian ให้ใช้ sftp(ssh ftp) port 22 เช่นใช้จาก FileZilla

หลัง upgrade จาก endian 2.3 ไปเป็น 2.4 แล้ว Traffic Graphs ไม่ขึ้น แก้ตามนี้
download libipt_standard.so ได้จาก http://bugs.endian.com/view.php?id=2943
copy ไปใส่ที่ /lib/iptables/ เสร็จแล้ว chmod 755
reboot แล้วรอสักพัก graph ถึงจะขึ้น

- บางครั้งถ้าไม่สามารถใช้ ftp download file ได้ขึ้น error เกี่ยวกับ virus scanning ให้ไป disable ftp proxy ออก ถึงแม้ว่า เครื่องที่ใช้ ftp จะเป็นการออกโดยไม่ผ่าน proxy ก็ตาม เหมือนกับว่า ftp proxy เป็น transparent proxy

Update จาก 2.4 เป็น 2.41 แล้วเจอปัญหา save config proxy แล้วค้าง
ให้ไป download 2 file ที่ http://bugs.endian.it/view.php?id=2676
แล้ว copy file notifications.py ไปใส่ /usr/lib/python2.4/site-packages/endian/status/
file servicesubscriber.js ไปใส่ /home/httpd/html/include/

rename file เก่าเป็นชื่ออื่นไว้ก่อนเผื่อมีปัญหา เสร็จแล้วสั่ง restart

Saturday, September 18, 2010

วิธีเพิ่ม SNMP ให้กับ Tomato Firmware

Download snmpd ได้จาก
http://systembash.com/source/snmpd.zip

extract file ออกมาเก็บไว้ใน folder snmpd แล้วสร้าง share เอาไว้ พร้อมกับกำหนด permission ว่าจะให้เข้าใช้ได้จาก user อะไร

เข้าหน้า config ของ tomato แล้วไปที่ administrations/CIFS Client
กำหนดค่าให้กับ cifs1 save ถ้าสำเร็จจะที่ Total/ Free Size จะขึ้นตัวเลขมาให้เห็น

telnet เข้าที่ tomato ทดสอบคำสั่งให้ run snmpd ดังนี้
/cifs1/snmpd -c /cifs1/snmpd.conf &

เสร็จแล้วลองเปิดโปรแกรม Network Monitor อะไรก็ได้ scan ดูว่าสำเร็จหรือไม่

สั่งให้ snmpd ทำงานทุกครั้งที่ router ทำงานโดย
ไปที่ web config หน้า Administration /Scripts /Firewall แล้วใส่คำสั่ง
sleep 30
/cifs1/snmpd -c /cifs1/snmpd.conf -s &

Firmware version 1.27 ใส่ที่ firewall ใช้ไม่ได้ ต้องใส่ที่ Init ถึงจะใช้ได้

save แล้วลอง สั่ง restart ดู

Note
-s คือให้ log error / warning ไว้ใน syslog
- สามารถดู syslog ได้จาก /var/log/message

Schedule Reboot Tomato


ให้ใส่คำสั่งนี้ใน Administration /Scripts / Init
sleep 86400
/sbin/reboot
จะเป็นการ reboot ทุกๆ 24 ชั่วโมง
ถ้าตั้ง reboot ใน schedule จะใช้ไม่ได้

Thursday, September 16, 2010

การใช้ Excel แปลงวันที่จาก yyyymmdd ให้เป็น dd/mm/yyyy

ใช้สูตร
=DATE(LEFT(A1,4),MID(A1,5,2),RIGHT(A1,2))
แทนที่ A1 ด้วย cell ที่ต้องการแปลง
เสร็จแล้วใช้ format cell แปลงให้อยู่ใน format ที่ต้องการ อาจจะใช้ custom format ก็ได้

Wednesday, September 15, 2010

Config 3Com Switch ผ่าน Console Port (รุ่นเก่า)

ใช้สาย Serial Null Modem 9-pin Female to Female
Speed = 19200
Data Bits = 8
Parity = N
Stop Bits = 1
Flow Control = None

สำหรับ Windows 7 จะไม่มี Hyper Terminal มาให้ แต่สามารถ copy ของ Windows XP มาใช้งานได้
โดย copy file hypertrm.exe และ hypertrm.dll มา

สำหรับ Swith 3com รุ่น 3226 จะต้องตั้งค่า Send line ends with line feeds ใน File/Properties/Settings/ASCII Setup ด้วย

Note
การ recovery switch 3com ที่ flash พลาดให้ใช้ SUU (3Com Software Update Utility) ในการ flash ซ้ำ
version ล่าสุดคือ 3.20 file suu03_20.exe

Tuesday, September 14, 2010

วิธีแก้ Backup Exec error V-79-57344-34110

V-79-57344-34110 - AOFO: Initialization failure on: "\\". Advanced Open File Option used: Symantec Volume Snapshot Provider (VSP).
AOFO: Unable to get minimum quiet time for physical volumes. Reduce the activity on these volumes, or wait and run the backup when there is ...



1. ทำ defrag drive ที่เกิดปัญหา
2. ลดเวลา quiet time ลงโดยการใช้ Advance Open File Option Wizard ที่อยู่ใน Tools/Wizard
connect ไปที่ server ที่เกิดปัญหา แล้วลดค่าลงจาก default 5 ให้เหลือ 2-4 วินาทีได้ โดยให้ลองลดดูทีละ 1 วินาที

การย้าย Profile

Windows Easy transfer for windows xp

http://www.microsoft.com/downloads/en/details.aspx?FamilyId=2B6F1631-973A-45C7-A4EC-4928FA173266&displaylang=en

http://www.howtotransferfiles.com/XP/XP_XP.html

ยังไม่ได้ลอง จดไว้ก่อน

Monday, September 13, 2010

วิธีแก้ปัญหา Backup Exec error 0xe0001201

Final error: 0xe0001201 - For this operation, the Backup Exec Virtual File Filter (VFF) driver must be installed on the media server. The VFF driver is installed when you install any of the following Backup Exec agents or options:

Exchange Agent
Active Directory Recover Option
VMware Virtual Infrastructure Agent
Microsoft Virtual Server Agent

Final error category: Resource Errors For additional information regarding this error refer to link V-79-57344-4609

ความหมายคือไม่มี VFF Driver install อยู่ ต้อง install VFF Driver โดยการ install exchange agent
เสร็จแล้วเปิด command promt แล้วพิมพ์คำสั่ง fltmc
จะเห็นบันทัด VirtFile เพิ่มขึ้นมา