Router อเนกประสงค์


เผื่อใครสนใจ หาชื้อ Router อยู่ หวังว่าับันทึกนี้อาจมีประโยชน์บ้าง

พอดี DLINK ตัวเก่าทำงานไม่ค่อย stable แล้ว ก็เลยมองหา router ตัวใหม่ ซึ่งตัวเดิมเป็น All-in-one ดังนั้นถ้าผมจะใช้ router อย่างเดี่ยว ต้องใช้ adsl modem หรือใช้ dlink ตัวเดิมใน bridge mode แทน

โจทย์มีอยู่ว่า Router ตัวใหม่ ต้องเป็นตัวที่ลง Linux ได้ ใช้งานได้หลากหลาย Router ที่มีขายตามตลาดตอนนี้ ที่ได้รับความนิยมมีดังนี้

1. WRT54GL ของ Linksys รุ่นนี้นิยมมาก ราคา 2150 บาท
spec: broadcom 5352 @ 200MHz , flash 4MB, RAM 16MB
(รุ่นนี้ overclock ได้ถึง 250)

2. WGR614L ของ Netgear รุ่นนี้ราคาน่าจะอยู่ในราวๆ 2500 บาท (ใครทราบช่วย update ด้วย)
spec: Broadcom ฺ5354 @ 240 MHz, Flash 4 MB , RAM 16 MB

3. WL-500GPv2 ของ Asus ราคาไม่เกิน 3000 บาท
spec: Broadcom 5354 @ 240MHz, Flash 8 MB (Macronix 29LV640DB, 64K sector size), RAM 32 MB, 2xUSB
wireless: Onboard BCM5354 802.11b/g

จริงๆ มีอีกยี่ห้อที่น่าสนใจคือ ยี่ห้อควาย (Buffalo) จากเทคโนโลยีควาย (Buffalo Technology)... ชื่อฟังดูทนดี :) แต่ดู spec ดีดี ไม่เบาทีเดียว

Chipset ส่วนใหญ่ที่ Routers ยี่ห้อต่างๆ ใช้คือ Broadcom (มากที่สุด) และ Atheros ส่วน IXP (intel), realtek, TI มีใ้ช้น้อยมาก

ดังนั้นเพื่อความสะดวกจึงควรเลือกใช้ router ที่ใช้ chipset ของ Broadcom เท่านั้น

 

note:

  • L หมายถึง Linux
  • ควรศึกษาวิธีการลง firmware แต่ล่ะตัวก่อน ว่าแต่ล่ะรุ่น support วิธีใด เช่น JTAG, Serial
  • hardware ที่ support มีหลายตัวมาก ลองดูเพิ่มเิติมจาก openwrt: Hardware support, dd-wrt: Hardware support, tomato: Hardware support
  • ควรมี Flash ขั้นต่ำ 4 MB 2 MB ก็เล่นได้ แต่ต้องเป็นรุ่น micro (2 MB)
  • router เริ่มมีรุ่นที่ใส่ harddisk ได้ในตัวแล้ว
  • router รุ่นใหญ่ๆ เริ่มจะกลายเป็น embedded แล้ว บางรุ่นใช้ Xscale

 

Router พวกนี้ มักมี 4xLAN + 1 WAN มาให้ด้วย เอามาทำอะไรได้้บ้างล่ะ?

  • multiwan, load-balance, fail-overs internet connection  ก็เอา port LAN มาเปลี่ยนเป็น WAN 


สำหรับรุ่นที่มี USB port นั้นมีประโยชน์อีกมาก ยกตัวอย่าง WL-500GPv2 จะสามารถ

  • ให้บริการเป็น NAS หรือ Windows Files sharing ได้ แค่เสียบ Thumbdrive หรือ External Harddisk (ที่มี USB interface) Router ใช้ Samba นั่นเอง 
  • เสียบ WebCam ก็กลายเป็น wireless webcam ล่ะ ตรวจจับความเคลื่อนไหวที่ผิดปกติ แล้วส่งแจ้งเตือนเข้า mail, sms หรือโทรศัพท์
  • เก็บ log ตาม พรบ. (สำหรับ home office, sme เล็กๆ ก็น่าจะไหวอยู่)
  • ให้บริการ web server เล็กๆ 
  • โหลด bit torrent ไม่ต้องใช้คอม

ป.ล. ผมไม่พูดถึงบริการ NAT, DDNS, VPN, Firewall, QoS, Port forward, DMZ นะ เพราะว่าบริการพวกนี้เป็นบริการพื้นๆ ทำได้อยู่แล้ว

 

Firmware ยอดนิยม

Tomato มีขนาดค่อนข้างใหญ่ flash rom ควรมี 4mb ขึ้นไป
Tomato Firmware
is a free HyperWRT-based, Linux core firmware distribution for several wireless routers, most notably the Linksys WRT54G (including the WRT54GL and WRT54GS), Buffalo AirStation and Asus Routers. Tomato is based on the GPL sourcecode released by Linksys, but includes proprietary binary modules from the chipset manufacturer Broadcom. Portions of the code are licensed under the GNU General Public License, but the source code for the user interface is under a more restrictive license which forbids use without the author's permission. Among notable features is the user interface, which makes heavy use of AJAX as well as an SVG-based graphical bandwidth monitor.

 

OpenWrt
OpenWrt
is a Linux-based firmware program for embedded devices such as residential gateways. Support was originally limited to the Linksys WRT54G series, but has since been expanded to include other chipsets and manufacturers, including Netgear, D-Link, Asus and many others. The most popular routers seem to be the Linksys WRT54G series and the Asus WL-500g. OpenWrt primarily uses a command-line interface, but also features an optional web-based GUI interface. Technical support is provided through the forums and IRC channel. The development of OpenWrt was initially aided by the ease of modification afforded by manufacturers' use of software licensed under the GNU General Public License (GPL), which requires manufacturers to release all changes made to code originally licensed under the GPL. Initially using this as a base and later as a reference, developers created a distribution that offers many features not previously found in consumer-level routers. Some features formerly required proprietary software. Before the introduction of OpenWRT 8.09, using Linux 2.6.25, and the b43 kernel module, WLAN for many Broadcom-based routers was only available through the proprietary wl.o module that was also only provided for Linux 2.4.

DD-WRT
DD-WRT
is free Linux-based firmware for several wireless routers, most notably the Linksys WRT54G (including the WRT54GL and WRT54GS). It is licensed under the GNU General Public License version 2. Like other similar projects, DD-WRT is considered a third-party firmware solution designed to replace the firmware that ships pre-installed on many commercial routers. This is done for a variety of reasons; including but not limited to the addition of features which are not typically included in a manufacturer's router firmware. DD-WRT includes such features as support for the Kai network, daemon-based services, IPv6, Wireless Distribution System, RADIUS, advanced quality of service, radio output power control, overclocking capability, and software support for a Secure Digital Card hardware modification.

DD-WRT versions up to v22 were based on the Alchemy firmware from Sveasoft, which in turn is based on the original Linksys firmware. DD-WRT versions from v23 onwards, however, are almost completely rewritten. The Linux kernel part is based on the OpenWrt kernel, which started as Linksys-based firmware but was later changed to its own build framework. All of the firmware is based on Linux, as are OpenWrt and Alchemy.

ตอนนี้ผมใช้ router ของ WL-500GPv2 ไว้มีเวลาคงได้ทำอะไรเล่น ถึงแม้ว่า WL-500GPv2 จะมี 2xUSB แต่ firmware ต่างๆในขณะนี้เท่าที่ผมเห็นผ่านตานั้น ยังไม่ support USB  เนื่องจากว่า router มากกว่า 80% ในตลาด ไ่ม่มี USB (ก็มัน router นะ ไม่ใช่ multifunction) ดังนั้นหากไม่ได้ใช้ USB ตัวเลือกอย่าง WGR614L ของ NetGear น่าสนใจทีเดียว


UPDATE
มี dd-wrt เริ่ม support แล้ว (อ้างอิง http://www.dd-wrt.com/wiki/index.php/USB) โดย Router ที่มี USB สามารถ

  • บริการ NAS ใช้ไ้ด้กะ USB Harddisk, thumdrive, CD/DVD-ROM และ floppy discs (อันหลังนี่ มีคนใช้ด้วยเหรอเนี่ย)
  • Printer sharing โอ อันนี้ไม่คาดไม่ถึง (แต่ได้ทำนะ) อันนี้ขึ้นอยู่กับ printer ด้วย
  • Scanner sharing ก็คล้ายๆกับ printer แต่ตัว Scanner เองต้อง support SANE
  • CD recording อันนี้ก็คาดไม่ถึง... นึกไม่ออกว่าจะใช้ยังไง :/
  • GSM/ADSL USB Modem  ใช้ มือถือต่อออก internet ใช้ USB เป็นหมือน wan อีกช่องหนึ่ง

น่าทึ่งนะครับ ไม่น่าเชื่อว่า USB + Router จะทำอะไรได้มากขนาดนี้ั แต่มีน่าทึ่งกว่า

  • USB To Serial เอามา control อุปกรณ์ที่เสียบต่อกะ serial .... ทำอะไรต่อได้เยอะเลยที่นี่ ควบคุมระบบไฟ หุ่นยนต์
  • Bluetooth support (ดึงเอาภาพจากกล้องจากมือถือ, ส่ง SMS, MMS, internet ผ่าน bluetooth,...)
  • มีิแนวคิดที่จะเอา TV2USB มาเสียบ แล้วบันทึกรายการลง Harddisk (ผมแถมให้ เอาไปส่งต่อที่ broadcast server ได้นะเนี่่ย)

ส่วน firmware อื่นๆ ยังไม่มีเวลาดู feature ที่อยากได้ ก็เริ่มมีคนทำล่ะ ขาดอยู่อันเดียว คือเอากล้อง webcam ต่อ แล้วทำเป็นระบบเตือนภัยขโมย (จริงๆ router Asus รุ่น WL-500G นั้นมี feature นี้อยู่แล้วนะ แต่ไม่รู้ทำไมพอ WL-500GPv2 feature นี้หายไป) แต่เชื่อไหม เดี่ยวไม่นานคงมีคนทำให้ (มันง่ายกว่า feature อื่นๆ ที่ dd-wrt มีตอนนี้อีก) นี่แหล่ะครับ Open Source ชุมชนในการแบ่งบัน...

ฟอสส์จ๋า คุณรักผมไหม? ผมรักคุณ!
(ป.ล. ฟอสส์ = Free and open source software.... เดี่ยวงานเข้า )


Links

หมายเลขบันทึก: 270674เขียนเมื่อ 24 มิถุนายน 2009 18:17 น. ()แก้ไขเมื่อ 8 พฤษภาคม 2012 11:50 น. ()สัญญาอนุญาต: ครีเอทีฟคอมมอนส์แบบ แสดงที่มา-ไม่ใช้เพื่อการค้า-อนุญาตแบบเดียวกันจำนวนที่อ่านจำนวนที่อ่าน:


ความเห็น (3)

มันเป็น all-in-one ด้วย จะแหล่มเลย

เออแฮะ เพิ่งจะรู้นะเนี่ยว่ามีอย่างนี้ด้วย สงสัยเราจะงานเข้าหนักไม่มีเวลาเปิดตาดูโลกภายนอกเลย ขอบคุณที่เอามาแบ่งปันครับ

พบปัญหาการใช้งานกรุณาแจ้ง LINE ID @gotoknow
ClassStart
ระบบจัดการการเรียนการสอนผ่านอินเทอร์เน็ต
ทั้งเว็บทั้งแอปใช้งานฟรี
ClassStart Books
โครงการหนังสือจากคลาสสตาร์ท