=====Konfigurasi jaringan pcq dan queue tree=====
Skenario yang akan di gunakan :
Client 192.168.6.1/26 = 62 client- --- Bandwidth 5Mbs 1:30
upload 800kb/s & Download 5 Mb/s
Server 192.168.7.1/28 = 14 client- --- Bandwidth 1Mbs 1:1 ( blom di buat kan pcq dan queue tree )
==================client semntara untuk dijadikan Server
Untuk trafik upload corporate
:for d from=1 to=10 do={
/ip firewall mangle add chain=prerouting src-address="192.168.6.$d in-interface=Local action=mark-packet new-packet-mark=corporate-up passthrough=no}
Untuk trafik download corporate
:for d from=1 to=10 do={
/ip firewall mangle add chain=forward src-address="192.168.6.$d" action=mark-connection new-connection-mark=corporate-conn passthrough=yes
/ip firewall mangle add chain=forward connection-mark=corporate-conn in-interface=Public action=mark-
packet new-packet-mark=corporate-down passthrough=no}
==================Client
:for m from=11 to=62 do={
/ip firewall mangle add chain=prerouting src-address="192.168.6.$m" in-interface=Local action=mark-packet
new-packet-mark=personal-up passthrough=no
/ip firewall mangle add chain=forward src-address=192.168.6.$m" action=mark-connection new-connection-
mark=personal-conn passthrough=yes
/ip firewall mangle add chain=forward connection-mark=personal-conn in-interface=Public action=mark-
packet new-packet-mark=personal-down passthrough=no
}
==================queue tree
/queue tree add name=down parent=Local queue=default
/queue tree add name=up parent=global-in queue=default
/queue type add name=1M-down kind=pcq pcq-rate=512k pcq-classifier=dst-address pcq-total-limit=2000
/queue type add name=512-up kind=pcq rate=512k pcq-classifier=src-address pcq-total-limit=2000
/queue type add name=auto-down kind=pcq pcq-rate=0 pcq-classifier=dst-address pcq-total-limit=2000
/queue type add name=auto-up kind=pcq rate=0 pcq-classifier=src-address pcq-total-limit=2000
Paket corporate
/queue tree add name=corp-down packet-mark=corporate-down parent=down queue=512-down
/queue tree add name=corp-up parent=up packet-mark=corporate-up queue=512-up
Paket personal
/queue tree add name=per-down packet-mark=personal-down parent=down queue=auto-down max-
limit=384k
/queue tree add name=per-up parent=up packet-mark=personal-up queue=auto-up max-limit=64k
Skenario yang akan di gunakan :
Client 192.168.6.1/26 = 62 client- --- Bandwidth 5Mbs 1:30
upload 800kb/s & Download 5 Mb/s
Server 192.168.7.1/28 = 14 client- --- Bandwidth 1Mbs 1:1 ( blom di buat kan pcq dan queue tree )
==================client semntara untuk dijadikan Server
Untuk trafik upload corporate
:for d from=1 to=10 do={
/ip firewall mangle add chain=prerouting src-address="192.168.6.$d in-interface=Local action=mark-packet new-packet-mark=corporate-up passthrough=no}
Untuk trafik download corporate
:for d from=1 to=10 do={
/ip firewall mangle add chain=forward src-address="192.168.6.$d" action=mark-connection new-connection-mark=corporate-conn passthrough=yes
/ip firewall mangle add chain=forward connection-mark=corporate-conn in-interface=Public action=mark-
packet new-packet-mark=corporate-down passthrough=no}
==================Client
:for m from=11 to=62 do={
/ip firewall mangle add chain=prerouting src-address="192.168.6.$m" in-interface=Local action=mark-packet
new-packet-mark=personal-up passthrough=no
/ip firewall mangle add chain=forward src-address=192.168.6.$m" action=mark-connection new-connection-
mark=personal-conn passthrough=yes
/ip firewall mangle add chain=forward connection-mark=personal-conn in-interface=Public action=mark-
packet new-packet-mark=personal-down passthrough=no
}
==================queue tree
/queue tree add name=down parent=Local queue=default
/queue tree add name=up parent=global-in queue=default
/queue type add name=1M-down kind=pcq pcq-rate=512k pcq-classifier=dst-address pcq-total-limit=2000
/queue type add name=512-up kind=pcq rate=512k pcq-classifier=src-address pcq-total-limit=2000
/queue type add name=auto-down kind=pcq pcq-rate=0 pcq-classifier=dst-address pcq-total-limit=2000
/queue type add name=auto-up kind=pcq rate=0 pcq-classifier=src-address pcq-total-limit=2000
Paket corporate
/queue tree add name=corp-down packet-mark=corporate-down parent=down queue=512-down
/queue tree add name=corp-up parent=up packet-mark=corporate-up queue=512-up
Paket personal
/queue tree add name=per-down packet-mark=personal-down parent=down queue=auto-down max-
limit=384k
/queue tree add name=per-up parent=up packet-mark=personal-up queue=auto-up max-limit=64k
Konfigurasi jaringan pcq dan queue tree