ผู้เขียน หัวข้อ: WRT54gl Layer2 setup  (อ่าน 6136 ครั้ง)

0 สมาชิก และ 1 บุคคลทั่วไป กำลังดูหัวข้อนี้

ออฟไลน์ nong_tha

  • Newbie
  • *
  • กระทู้: 11
  • Respect: 0
    • ดูรายละเอียด
WRT54gl Layer2 setup
« เมื่อ: สิงหาคม 26, 2010, 19:52:15 PM »
0
การทำ Linksys WRT54GL ให้เป็น layer2 switch 5 port (802.1q ด้วย) พร้อม multi SSID  และสามารถต่อเป็น Trunk กับ Cisco หรือ Manage switch อื่นได้ด้วย

  1. เปลี่ยน OS ให้เป็น Openwrt kamikaze 7.09 ก่อน http://wiki.openwrt.org/doc/howto/installing
 
  2.แก้ network config  ที่ /etc/config/network
     #### Network Config By Nong_tha
    #### VLAN configuration
    #### VLAN PVID 4 used for Private
    #### VLAN PVID 6 used for Public
    #### VLAN PVID 8 used for Management
   #Port 4 เป็น Trunk port 0 vlan8, 1 vlan6,  2 vlan 4  , wifi เป็น 3 SSID access แยก vlan
   config switch eth0
   option vlan4   "4t 2 5*"
   option vlan6   "4t 1 5*"
   option vlan8   "4t 0 5*"
   
   #### Loopback configuration
   config interface loopback
   option ifname   "lo"
   option proto   static
   option ipaddr   127.0.0.1
   option netmask   255.0.0.0
   #
    #### VLAN configuration
    # Port 4 trunking
    # Port 0 access vlan 8
    # Port 1 access vlan 6
    # Port 2 access vlan 4
    #
    config interface vlan4
   option type    bridge
   option ifname   "eth0.4"
   option proto   static
   option ipaddr   10.168.4.1
   option netmask   255.255.255.0

    config interface vlan6
   option type    bridge
   option ifname   "eth0.6"
   option proto   static
   option ipaddr   10.168.6.1
   option netmask   255.255.255.0
   
    config interface vlan8
   option type    bridge
   option ifname   "eth0.8"
   option proto   static
   option ipaddr   10.168.8.1
   option netmask   255.255.255.0

  3.แก้ wireless config  ที่ /etc/config/wireless
   #### Wireless Config By Nong_tha
   #### Wireless configuration
   #### vlan4 used for Private
   #### vlan6 used for Public
   #### vlan8 used for Management
   #
   config wifi-device  wl0
   option type     broadcom
   option channel  2

   # REMOVE THIS LINE TO ENABLE WIFI:
   option disabled 0

   config wifi-iface
   option device   wl0
   option network   vlan4
   option mode     ap
   option ssid     private
   option encryption psk
        option key abcdef

   config wifi-iface
   option device   wl0
   option network   vlan6
   option mode     ap
   option ssid     public
   option encryption none
   
   config wifi-iface
   option device   wl0
   option network   vlan8
   option mode     ap
   option ssid     Management
   option encryption psk
        option key     123456

เวลาดู Port ให้ดูจากข้างหลัง นับ

5 เสาอากาศ ซ้าย  ต่อไป 4 wan 3 2 1 0 LAN  และ สุดท้าย 5 เสาอากาศ ขวา

แบ่งปันให้ครับ โรงพยาบาลเล็กๆอาจไม่มี ตังซื้อ Layer 2 manage  หรือจะเอาไปทำ Balance adsl 4 port ก็ได้
« แก้ไขครั้งสุดท้าย: สิงหาคม 27, 2010, 15:08:51 PM โดย nong_tha »
 

ออฟไลน์ Knott

  • Hero Member
  • *****
  • กระทู้: 887
  • Respect: +1
    • ดูรายละเอียด
Re: WRT54gl Layer2 setup
« ตอบกลับ #1 เมื่อ: สิงหาคม 26, 2010, 22:24:27 PM »
0
ขอบคุณครับ  linksys นี่สารพัดประโยชน์จริงๆ  ครับ  ;D ;D
รพช.วัดโบสถ์ จ.พิษณุโลก
ขึ้นระบบ 1 เมษายน 2551 (ขึ้นระบบเอง)
Server : IBM x3250 M2, RAM 4 GB, FreeBSD 7.2, Mysql 5.1.30
HOSxP Version 3.56.1.15

ออฟไลน์ Svl2Nuk3

  • Hero Member
  • *****
  • กระทู้: 793
  • Respect: 0
    • ดูรายละเอียด
Re: WRT54gl Layer2 setup
« ตอบกลับ #2 เมื่อ: สิงหาคม 26, 2010, 22:55:59 PM »
0
ตัวนี้มันเป็น  Embedded Linux หรือเปล่าครับ (ไม่แน่ใจ)
แต่เห็นวงการอิเล็ก  เอามาประยุกต์ได้เยอะแยะเลยครับ
ว่าแต่  Multi SSID  กับ 802.1Q นี่รู้สึกว่ามันจะคนละอย่างกันนะครับ

http://www.youtube.com/watch?v=WCkdH-eZkDk
http://www.youtube.com/watch?v=eeMLioFJHzo

เคยเห็นเอาตัวนี้มาทำเป็น Wireless  สำหรับส่งข้อมูลผ่าน RS-232  ได้ด้วย  สุดยอดจริง ๆ

ปล.พี่นอท  ถ้าเปลี่ยนสวิตเป็น L2  คงไม่ต้องเปลี่ยน Wireless  แล้วดิ  ว้าว ๆ  ขอบ้านพักแรง ๆ หน่อย อิอิ
I'm nuke (นุ๊ก)
My Blog  : http://www.codenuke.net
อดีต นวก.คอมฯ รพช.พรหมพิราม => 1 พ.ค. 52 - 30 ก.ย. 54
ปัจจุบัน : Software Engineer บริษัทแห่งหนึ่ง