/ip address
add address=203.0.113.2/30 interface=ether1
add address=172.16.10.1/24 interface=bridge-lan

/ip firewall mangle
add chain=prerouting action=mark-connection new-connection-mark=voice-conn dscp=46 passthrough=yes comment="Voice / meeting"
add chain=prerouting action=mark-packet connection-mark=voice-conn new-packet-mark=voice-pkt passthrough=no
add chain=prerouting action=mark-packet src-address=172.16.10.0/24 new-packet-mark=general-pkt passthrough=no comment="Traffic umum"

/queue type
add name=pcq-download kind=pcq pcq-classifier=dst-address pcq-rate=20M
add name=pcq-upload kind=pcq pcq-classifier=src-address pcq-rate=10M

/queue tree
add name=TOTAL-DOWN parent=global max-limit=100M
add name=VOICE-DOWN parent=TOTAL-DOWN packet-mark=voice-pkt priority=1 limit-at=20M max-limit=40M
add name=GENERAL-DOWN parent=TOTAL-DOWN packet-mark=general-pkt priority=5 queue=pcq-download max-limit=80M
add name=TOTAL-UP parent=global max-limit=50M
add name=VOICE-UP parent=TOTAL-UP packet-mark=voice-pkt priority=1 limit-at=10M max-limit=20M
add name=GENERAL-UP parent=TOTAL-UP packet-mark=general-pkt priority=5 queue=pcq-upload max-limit=40M

/tool graphing interface
add interface=ether1 store-on-disk=yes
