Announcement

Collapse
No announcement yet.

Mikrotik Club

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Originally posted by nirvanaaa View Post
    ผมมือไหม่กำลังหาสคริป microtik pccloadbalance 3wan
    ผมสงสัยมากเลยครับเรื่อง weight ของpcc loadbalance ผมกำลังจะหาคอนฟิกอยู่พอดีครับ เนทของผม 16m10m5m
    คิดอัตราส่วนยังไงอ่าครับ พอดีผมไปเจอเวบนี้เข้าเลยสงสัยแล้วก็งงไปไหญ่เลยครับ ในกรณีของท่านนี้

    อ้างจาก: birdjajuju ที่ มิถุนายน 18, 2012, 0153 PM
    เว็บนี้ครับ
    http://mikrotikclub.com/board/index....ic,2099.0.html


    - สคริปอันแรก 2 wan ออก 1 lan ตรง ที่สร้าง PPoE มันมี 4 อัน ตัดออกเหลือสองหรือเปล่าครับ เหมือนมันเกินมา 4 อัน
    - เนตผม 2 เส้นไม่เท่ากันครับ เส้นแรก 6 เส้นที่ 2 10 เม๊ก สคริบช่วงนี้ต้องเพิ่มอะไรไม๊ครับ
    add action=mark-connection chain=prerouting connection-mark=no-mark disabled=\
    no dst-address-type=!local in-interface=ether1 new-connection-mark=\
    WAN1_conn passthrough=yes per-connection-classifier=both-addresses:2/0
    add action=mark-connection chain=prerouting connection-mark=no-mark disabled=\
    no dst-address-type=!local in-interface=ether1 new-connection-mark=\
    WAN2_conn passthrough=yes per-connection-classifier=both-addresses:2/1
    - ผมต่อกับเนตเส้นเดียวก่อน มันจะมีปัญหาอะไรไม๊ครับ หลักการทำงานคร่าวๆของสคริปนี้คืออะไรครับ

    ดูตัวอย่างจากลิ้งนี้เพิ่มเติมได้ครับ http://aacable.wordpress.com/2011/08...mplete-script/

    WAN1 = 6M / WAN2 = 10M

    Ratio 3:5 = 8 Portions

    add action=mark-connection chain=prerouting connection-mark=no-mark disabled=\
    no dst-address-type=!local in-interface=ether1 new-connection-mark=\
    WAN1_conn passthrough=yes per-connection-classifier=both-addresses:8/0

    add action=mark-connection chain=prerouting connection-mark=no-mark disabled=\
    no dst-address-type=!local in-interface=ether1 new-connection-mark=\
    WAN1_conn passthrough=yes per-connection-classifier=both-addresses:8/1


    add action=mark-connection chain=prerouting connection-mark=no-mark disabled=\
    no dst-address-type=!local in-interface=ether1 new-connection-mark=\
    WAN1_conn passthrough=yes per-connection-classifier=both-addresses:8/2


    add action=mark-connection chain=prerouting connection-mark=no-mark disabled=\
    no dst-address-type=!local in-interface=ether1 new-connection-mark=\
    WAN2_conn passthrough=yes per-connection-classifier=both-addresses:8/3


    add action=mark-connection chain=prerouting connection-mark=no-mark disabled=\
    no dst-address-type=!local in-interface=ether1 new-connection-mark=\
    WAN2_conn passthrough=yes per-connection-classifier=both-addresses:8/4

    add action=mark-connection chain=prerouting connection-mark=no-mark disabled=\
    no dst-address-type=!local in-interface=ether1 new-connection-mark=\
    WAN2_conn passthrough=yes per-connection-classifier=both-addresses:8/5

    add action=mark-connection chain=prerouting connection-mark=no-mark disabled=\
    no dst-address-type=!local in-interface=ether1 new-connection-mark=\
    WAN2_conn passthrough=yes per-connection-classifier=both-addresses:8/6

    add action=mark-connection chain=prerouting connection-mark=no-mark disabled=\
    no dst-address-type=!local in-interface=ether1 new-connection-mark=\
    WAN2_conn passthrough=yes per-connection-classifier=both-addresses:8/7


    กับที่คุณtomodify

    2 wan ก็ 2/0 ที่ wan 1, 2/1 ที่ wan2
    3 wan ก็ 3/0 ที่ wan 1, 3/1 ที่ wan2, 3/2 ที่ wan 3
    4 wan ก็ 4/0 ที่ wan 1, 4/1 ที่ wan2,..., 4/3 ที่ wan 4

    ผมขออนุญาติถามนะครับว่ามันไช้ได้ไหมครับ
    Ratio 3:5 = 8 Portions สคริปมันเยอะจังครับ

    ผมมือใหม่ mt จากที่ผมอ่านนะ คือ pcc เนี่ย มันจะกระจายโหลดแบบ array เริ่มจาก 0 1 2 3 ถ้าเรามี 3 wan ก็จะได้ ตามตัวอย่างนี้
    Code:
    add chain=prerouting dst-address-type=!local in-interface=Local per-connection-classifier=both-addresses-and-ports:1/0 action=mark-connection new-connection-mark=WAN1_conn passthrough=yes
    add chain=prerouting dst-address-type=!local in-interface=Local per-connection-classifier=both-addresses-and-ports:1/1 action=mark-connection new-connection-mark=WAN2_conn passthrough=yes
    add chain=prerouting dst-address-type=!local in-interface=Local per-connection-classifier=both-addresses-and-ports:1/2 action=mark-connection new-connection-mark=WAN3_conn passthrough=yes
    ทีนี้เรามาคิดเรื่อง weight กันในอัตราส่วน ratio ของ mt นี่ผมยังค่อยไม่เข้าใจ แต่ตามทฤษฎีของโหลดบาล้านหรือ wrr(weight route robin) มันจะกระจายทราฟฟิกไปตาม weight ที่เรากำหนดเช่น ถ้าเราตั้งค่า 4:1 ในอัตราส่วนเนต 10 m จำนวน 2 เส้น เส้นแรกคืออัตรา 4 จะถูกใช้งานถึง 100 % เมื่อเกินนี้จึงจะข้ามไปใช้งานอีกเส้น
    ต่อไปมาดูในส่วนของ weight mt อ่านจากเวปนี้
    http://aacable.wordpress.com/2011/08...mplete-script/

    wan 1,2,3 เส้นละ 4 mb แต่ wan 4 8 mb ดังนั้นต้องมีการบังคับให้ใช้ทราฟฟิกใน wan 4 เพิ่มขึ้นเป็น 100 % จากโค้ดที่เขาเขียนจะเห็นว่า
    Code:
    add chain=prerouting dst-address-type=!local in-interface=Local per-connection-classifier=both-addresses-and-ports:4/0 action=mark-connection new-connection-mark=WAN1_conn passthrough=yes
    add chain=prerouting dst-address-type=!local in-interface=Local per-connection-classifier=both-addresses-and-ports:4/1 action=mark-connection new-connection-mark=WAN2_conn passthrough=yes
    add chain=prerouting dst-address-type=!local in-interface=Local per-connection-classifier=both-addresses-and-ports:4/2 action=mark-connection new-connection-mark=WAN3_conn passthrough=yes
    add chain=prerouting dst-address-type=!local in-interface=Local per-connection-classifier=both-addresses-and-ports:4/3 action=mark-connection new-connection-mark=WAN4_conn passthrough=yes
    add chain=prerouting dst-address-type=!local in-interface=Local per-connection-classifier=both-addresses-and-ports:4/4 action=mark-connection new-connection-mark=WAN4_conn passthrough=yes
    จะเห็นว่าในส่วนของ wan 4 เขากำหนด weight เป็น 4 ครับ

    อ่านของพี่ WiFi4you กะได้ ง่ายดี
    http://www.wifi4you.com/Amp/Multiwan-Ratio.html

    ลองดู raito กับความเร็วจะเห็นว่ามันสัมพันธ์กันครับ

    ปล. ถ้าผมเข้าใจตรงไหนผิดพลาดรบกวนแย้งด้วยนะครับ ขอบคุณครับ
    Last edited by skaz-; 3 Jul 2013, 08:00:46.

    Comment


    • แนะนำการกำหนดการใช้งานเป็นวัน แบบนับตั้งแต่ login ครั้งแรกหน่อย โดยใช้ winbox นะครับ

      ที่ลองทำเช่น 30d 00:00:00 มันจะนับถอยหลังเฉพาะตอน login

      Comment


      • สวัสดีครับ
        ไม่ทราบว่าตอนนี้ Software Version ไหน เสถียรดีบ้างครับ
        ของเดิมเป็น 5.22 อยู่ สนใจอัพเป็น 5.25 หรือ 6.1 ครับ

        Comment




        • ตรงกรอบสีแดงช่องหน้า2ช่องต้องติ๊กหรือป่าวครับ เพราะผมจำกัดความเร็วของแต่ละuserไว้ แต่พอไปดูที่ hotspot -active วิ่งเป็น10m-15mเลย บางuser ไม่รู้ทำผิดขั้นตอนตรงไหนช่วยทีนะครับ

          Comment


          • สวัสดีครับ

            ทุกวันนี้ลูกค้าไวไฟในมือถือเพิ่มขึ้น (เนื่องจาก 3g ห่วยหรือไรไม่รู้) เลยจะขอคำแนะนำครับ
            เรื่องทำยังไงให้ลูกค้ามือถือสามารถล็อกอินอัตโนมัติในระบบไมโครติกได้ครับ

            ขอบคุณครับ

            Comment


            • Originally posted by k-7 View Post
              สวัสดีครับ

              ทุกวันนี้ลูกค้าไวไฟในมือถือเพิ่มขึ้น (เนื่องจาก 3g ห่วยหรือไรไม่รู้) เลยจะขอคำแนะนำครับ
              เรื่องทำยังไงให้ลูกค้ามือถือสามารถล็อกอินอัตโนมัติในระบบไมโครติกได้ครับ

              ขอบคุณครับ
              ตามนี้ครับ

              http://www.sys2u.com/xpert/viewtopic.php?f=53&t=13852

              Comment


              • Originally posted by abeebi View Post
                พี่ครับถ้าเราทำตามข้างบนแล้ว เราสามารถจัดการผู้ใช้ได้ไหมเช่น กำหนดวันหมดอายุ กำหนดความเร็ว เก็บประวัติการใช้งานอินเตอร์เน็ต กำลังหาข้อมูลอยุ่พอดีเลยครับ

                Comment


                • login ด้วย mac address น่าจะได้มั๊ยครับ ถ้าเข้ามาในระยะแล้วล็อกอินเองเลยอัตโนมัติ แต่เป็นระบบ hotspot ต้องจัดการเรื่องวันหมดอายุเอง แต่เรื่อง speed ก็จัดเข้า group กับลูกค้าทั่วไปได้เลย

                  All.jpg

                  แบบผมนี่ไม่รู้ถูกหรือผิด หากมีบกพร่องยังไง รบกวนพี่ ๆ ในนี้แนะนำด้วยนะครับ
                  Last edited by comkios; 4 Jul 2013, 22:00:05.

                  Comment


                  • Originally posted by comkios View Post
                    login ด้วย mac address น่าจะได้มั๊ยครับ ถ้าเข้ามาในระยะแล้วล็อกอินเองเลยอัตโนมัติ แต่เป็นระบบ hotspot ต้องจัดการเรื่องวันหมดอายุเอง แต่เรื่อง speed ก็จัดเข้า group กับลูกค้าทั่วไปได้เลย

                    [ATTACH=CONFIG]2358230[/ATTACH]

                    แบบผมนี่ไม่รู้ถูกหรือผิด หากมีบกพร่องยังไง รบกวนพี่ ๆ ในนี้แนะนำด้วยนะครับ
                    แล้วแบบนี้เครื่องลูกค้าต้องตั้ง IP หรือว่ารับ Auto ครับ

                    Comment


                    • Originally posted by pommorn View Post
                      แล้วแบบนี้เครื่องลูกค้าต้องตั้ง IP หรือว่ารับ Auto ครับ
                      ของผมคือตั้งค่าสร้าง Hotspot ตามในนี้แหละฮะ มันก็แจก IP Auto นะครับ
                      Last edited by comkios; 5 Jul 2013, 10:49:15.

                      Comment


                      • ช่วยหน่อยครับ พอดีทำhotspot ติดตรงที่ว่าถ้ายังไม่ได้ login จะใช้server database ที่ต่ออยู่ในวงแลนเดียวกันไม่ได้คับ connect error ตลอดเลย ต้อง login hotspot ก่อนถึงจะใช้ได้

                        Comment


                        • ข้างบนนี่ทำ bypass ก็น่าจะได้นะครับ ปล่อยให้ใช้โดยไม่ต้อง login เลย

                          Comment


                          • ขอบคุณครับ แต่ผมมีอีกเรื่องนึง

                            ถ้าผมอยากสั่งปริ้นงานผ่าน network printer ผมจะต้องทำยังไงบ้างครับ
                            ผมต่อปริ้นเตอร์เข้าไมโครติกละ แต่ผมทำต่อไม่เป็น -..-

                            eth1 = pppoe, eth5 = out ผมก็เลยต่อปริ้นเตอร์ที่ eth4 ครับ

                            Comment


                            • Originally posted by k-7 View Post
                              ขอบคุณครับ แต่ผมมีอีกเรื่องนึง

                              ถ้าผมอยากสั่งปริ้นงานผ่าน network printer ผมจะต้องทำยังไงบ้างครับ
                              ผมต่อปริ้นเตอร์เข้าไมโครติกละ แต่ผมทำต่อไม่เป็น -..-

                              eth1 = pppoe, eth5 = out ผมก็เลยต่อปริ้นเตอร์ที่ eth4 ครับ
                              ที่ eth4 เลือก Master Port เป็น eth5 สิครับ จะได้เป็นวงเดียวกัน

                              Comment


                              • bypass ให้ printer ด้วย
                                printer มัน login เองไม่เป็นครับ

                                Comment

                                Working...
                                X