แสดงกระทู้

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - nong_tha

หน้า: [1]
1
Networking / WRT54gl Layer2 setup
« เมื่อ: สิงหาคม 26, 2010, 19:52:15 PM »
การทำ 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 ก็ได้

2
Linux / USB linux
« เมื่อ: กันยายน 28, 2006, 21:17:20 PM »
ผมได้ทำ linux slackware 10.2 +mysql 4.1.14 และ  HOSxP data รวมไว้ให้ใน usb linux เรียบร้อยแล้ว
ผู้ที่สนใจจะนำไปทดลองดู download ได้

http://small.homelinux.com/hosxp/HOSxP.zip

แล้ว extract ลงไปใน thumb drive 1-2 G (formatted ด้วย fat32)

นำเอา

http://small.homelinux.com/hosxp/setup.exe

ไปไว้ใน c ด้วย ใช้ command
c>setup F: (ในกรณีที่ F: คือ thumbdrive)

login root
password HOSxP

เข้าไปแก้ IP โดย ใช้คำสั่ง
ืำ#netconfig

mysql user sa
password sa
สำหรับ mysql root ไม่มีpassword นะครับอย่าลืม set ด้วย
ใครจะลง packages เพิ่มสามารถทำได้ จาก http://packages.slackware.it/


หน้า: [1]