Jun 202008
 

“Mikrotīkls Ltd., known internationally as MikroTik, is a Latvian manufacturer of computer networking equipment. It sells wireless products and routers. The company was founded in 1995, with the intent to sell in the emerging wireless technology market. As of 2007, the company had more than 70 employees.”

Membagi bandwidth secara adil dengan mikrotik

Dengan menggunakan queue type pcq di Mikrotik, kita bisa membagi bandwidth yang ada secara merata untuk para user, saat jaringan pada posisi peak.

step2nya:

  1. Asumsi : Network Address 172.16.0.0/12, interface yang mengarah ke pengguna diberi nama Lan, dan interface yang mengarah ke upstream provider diberi nama Public;
  2. Ketikkan di console atau terminal :
          /ip firewall mangle add chain=forward src-address=172.16.0.0/12 \
             action=mark-connection new-connection-mark=users-con
          /ip firewall mangle add connection-mark=users-con action=mark-packet \
             new-packet-mark=users chain=forward
          /queue type add name=pcq-download kind=pcq pcq-classifier=dst-address
          /queue type add name=pcq-upload kind=pcq pcq-classifier=src-address
          /queue tree add name=Download parent=Lan max-limit=2048000
          /queue tree add parent=Download queue=pcq-download packet-mark=users
          /queue tree add name=Upload parent=Public max-limit=1024000
          /queue tree add parent=Upload queue=pcq-upload packet-mark=users
          /queue tree add parent=Lan queue=pcq-download packet-mark=users
          /queue tree add parent=Public queue=pcq-upload packet-mark=users
    
  3. selamat mencoba!!

note: LAN dan INTERNET adalah nama interface.LAN interface ke arah user/client,INTERNET interface ke arah ISP.

Share

  29 Responses to “Membagi bandwidth secara adil dengan mikrotik”

Comments (29)
  1. Интересный блог- ещё зайду

  2. nice info tq bro

  3. /queue tree add name=Download parent=Lan max-limit=256000
    input does not match any value of parent

    Kenapa ya?

    • Value yg harus di isi di parameter Parent adalah nama interface nya pak, misalnya ether1, ether2 Parent=Lan karena say amenamakan interface nya Lan

  4. klo queue tree nya seperti itu apakah semua blok ip di atas memang bener2 rata bagi bandwidth nya??? soalnya disitu ga ada setingan per ip, baik di mangle maupun di queue tree nya.Mohon pncerahannya.sehingga klo pas client nya cm 1 PC bandwith bisa di gunakan oleh PC tersebut sndiri.terus klo dah banyak client baru bisa terbagi ssuai dengan bnyk nya client
    Thanks

    • queue dengan PCQ(Per Connection Queue) akan membagi bandwidth secara otomatis.jadi nggak perlu di define per IP. contoh bandwidth 1 M , satu user mendownload akan bisa memakai upto 1M, jika satu user lagi mendownload PCQ akan otomatis membagi 2, begitu seterus nya.

 Leave a Reply

(required)

(required)


*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>