Home General Computer Multimedia Business Lounge

Post Reply 
Seting Mikrotik untuk Warnet
07-25-2010, 03:17 AM
Post: #1
Seting Mikrotik untuk Warnet
udah banyak pastinya artikel yang ngebahas masalah ini, kali ini ane coba nambahin aja, maaf kalo threadnya ga berbobot ya, maklum masih hijau ane :)

spesifikasi yang kita butuhkan

Code:
- 1 Line Internet DSL 1 MBPS MAX
- Routerboard RB450, RB450g atau PC
- 5 Interface
- Bandwidth Limit dan Bandwidth Shapping
- CIR 64kbps
- MIR 256kbps
- No Hotspot
- PC Optimal Up to 10 PC + 1 Billing
- IP Ether1 : 10.10.10.1 ( to LAN)
- IP Ether2 : 10.10.11.2 (to Modem Dsl)
- IP LAN Modem DSL 10.10.11.1
- DNS Resolver dapat di ubah sesuai dengan kebutuhan
- IP Terimal Rang 10.10.10.100 - 10.10.10.110
- Netmask 255.255.255.0
- Gateway 10.10.10.1
- DNS Primary Terminal 10.10.10.1
- DNS Secondary Terimal di set sesuai kebutuhan
- Topologi : Modem DSL --> ether2 Mikrotik --> Router Mikrotik --> Ether1 Mikrotik --> Switch --> PC Terminal

langkah 1
install mikrotik OS, ane rasa dah banyak yang bahas ini :)

langkah 2
Set Ip Address Tiap interface

Code:
ip address add address=10.10.10.1/24 interface=ether1
ip address add address=10.10.11.2/24 interface=ether2

langkah 3
Setting DNS Resolver Mikrotik dan PC

Code:
ip dns static add name=sobatkucyber.com address=10.10.10.1
ip dns set primary-dns=10.10.11.2 secondary-dns=202.134.1.1 allow-remote-requests=yes

langkah 4
Masq Jaringan LAN

Code:
ip firewall nat add chain=srcnat src-address=10.10.10.0/24 action=masquerade

langkah 5
Memberikan Nama Router

Code:
system identity set name=sobatku

langkah 6
Set jam Otomatis

Code:
system  ntp client set primary-ntp=0.pool.ntp.org secondary-ntp=3.pool.ntp.org enabled=yes

langkah 7
menentukan Default Routing

Code:
ip route gateway=10.10.11.1

langkah 8
Membuat Mark Connection yang nantinya di pakai untuk memilah Paket

Code:
ip firewall mangle add chain=forward src-address=10.10.10.100 action=mark-connection new-connection-mark=billing
ip firewall mangle add chain=forward src-address=10.10.10.101 action=mark-connection new-connection-mark=pc1
ip firewall mangle add chain=forward src-address=10.10.10.102 action=mark-connection new-connection-mark=pc2
ip firewall mangle add chain=forward src-address=10.10.10.103 action=mark-connection new-connection-mark=pc3
ip firewall mangle add chain=forward src-address=10.10.10.104 action=mark-connection new-connection-mark=pc4
ip firewall mangle add chain=forward src-address=10.10.10.105 action=mark-connection new-connection-mark=pc5
ip firewall mangle add chain=forward src-address=10.10.10.106 action=mark-connection new-connection-mark=pc6
ip firewall mangle add chain=forward src-address=10.10.10.107 action=mark-connection new-connection-mark=pc7
ip firewall mangle add chain=forward src-address=10.10.10.108 action=mark-connection new-connection-mark=pc8
ip firewall mangle add chain=forward src-address=10.10.10.109 action=mark-connection new-connection-mark=pc9
ip firewall mangle add chain=forward src-address=10.10.10.110 action=mark-connection new-connection-mark=pc10

langkah 9
Membuat mark packet untuk Queue, yang didapat dari mark connection

Code:
ip firewall mangle add chain=forward connection-mark=billing action=mark-packet new-packet-mark=billing
ip firewall mangle add chain=forward connection-mark=pc1 action=mark-packet new-packet-mark=pc1
ip firewall mangle add chain=forward connection-mark=pc2 action=mark-packet new-packet-mark=pc2
ip firewall mangle add chain=forward connection-mark=pc3 action=mark-packet new-packet-mark=pc3
ip firewall mangle add chain=forward connection-mark=pc4 action=mark-packet new-packet-mark=pc4
ip firewall mangle add chain=forward connection-mark=pc5 action=mark-packet new-packet-mark=pc5
ip firewall mangle add chain=forward connection-mark=pc6 action=mark-packet new-packet-mark=pc6
ip firewall mangle add chain=forward connection-mark=pc7 action=mark-packet new-packet-mark=pc7
ip firewall mangle add chain=forward connection-mark=pc8 action=mark-packet new-packet-mark=pc8
ip firewall mangle add chain=forward connection-mark=pc9 action=mark-packet new-packet-mark=pc9
ip firewall mangle add chain=forward connection-mark=pc10 action=mark-packet new-packet-mark=pc10

langkah 10
Membuat Parent tertinggi Queue

Code:
queue tree add name=sobatku parent=ether2 max-limit=10000000

langkah 11
Membuat Queue per terminal

Code:
queue tree add name=pcbil packet-mark=billing parent=sobatku limit-at=64000 max-limit=250000
queue tree add name=pc1 packet-mark=pc1 parent=sobatku limit-at=64000 max-limit=250000
queue tree add name=pc2 packet-mark=pc2 parent=sobatku limit-at=64000 max-limit=250000
queue tree add name=pc3 packet-mark=pc3 parent=sobatku limit-at=64000 max-limit=250000
queue tree add name=pc4 packet-mark=pc4 parent=sobatku limit-at=64000 max-limit=250000
queue tree add name=pc5 packet-mark=pc5 parent=sobatku limit-at=64000 max-limit=250000
queue tree add name=pc6 packet-mark=pc6 parent=sobatku limit-at=64000 max-limit=250000
queue tree add name=pc7 packet-mark=pc7 parent=sobatku limit-at=64000 max-limit=250000
queue tree add name=pc8 packet-mark=pc8 parent=sobatku limit-at=64000 max-limit=250000
queue tree add name=pc9 packet-mark=pc9 parent=sobatku limit-at=64000 max-limit=250000
queue tree add name=pc10 packet-mark=pc10 parent=sobatku limit-at=64000 max-limit=250000

Untuk CIR dan MIR dapat di sesuaikan dengan kesiapain Bandwidth yang didapat dari ISP
Saran untuk setting CIR adalah total dari jumlah PC yang di queue kan jika di kalikan dengan Nilai CIR tidak melebihi Bandwidth minimal yang bisa di dapat dari ISP biasanya menggunakan 64k, total dari 64kx11 PC sekitar 700an kbps. Jika ente yakin ISP ente bisa memberikan 1 mbps pada saat peak time, ente dapat mendapatkan Nilai CIR dari total Bandwidth di bagi jumlah PC.

semoga bermanfaat,
maaf kalo cupu, ini untuk kasus sederhana :)
Visit this user's website Find all posts by this user
Quote this message in a reply
07-25-2010, 10:12 AM
Post: #2
RE: Seting Mikrotik untuk Warnet
Bukan Artikel untuk newbie.......... Jadi ane ora mudeng mas............. =))
Visit this user's website Find all posts by this user
Quote this message in a reply
07-25-2010, 10:15 AM
Post: #3
RE: Seting Mikrotik untuk Warnet
mantap....nice tutz bro
Find all posts by this user
Quote this message in a reply
07-25-2010, 10:37 AM
Post: #4
RE: Seting Mikrotik untuk Warnet
mana neh om chaer katanye nyari gi tuts mikrotik tuh ketawa
Find all posts by this user
Quote this message in a reply
07-25-2010, 10:38 AM
Post: #5
RE: Seting Mikrotik untuk Warnet
jadi paketmark nya dipishain 1 per 1 ya bang ganteng

terus kalo pc clientnya banyak , kita inpus 1 1 dong T.T
Find all posts by this user
Quote this message in a reply
07-25-2010, 11:29 AM
Post: #6
RE: Seting Mikrotik untuk Warnet
iye ntu om hehehehe, maklum nubi om, kan cuman bisa yang sederhana aja om,
nah om chaer yang ganteng pasti tau dong kalo setting packet-mark secera banyak
bagi dong om :)
Visit this user's website Find all posts by this user
Quote this message in a reply
07-25-2010, 11:50 AM
Post: #7
RE: Seting Mikrotik untuk Warnet
Code:
/ ip firewall mangle
add chain=forward src-address-list=nice action=mark-connection \
new-connection-mark=mark-con-indonesia passthrough=yes comment=”mark all \
indonesia source connection traffic” disabled=no
add chain=forward dst-address-list=nice action=mark-connection \
new-connection-mark=mark-con-indonesia passthrough=yes comment=”mark all \
indonesia destination connection traffic” disabled=no
add chain=forward src-address-list=!nice action=mark-connection \
new-connection-mark=mark-con-overseas passthrough=yes comment=”mark all \
overseas source connection traffic” disabled=no
add chain=forward dst-address-list=!nice action=mark-connection \
new-connection-mark=mark-con-overseas passthrough=yes comment=”mark all \
overseas destination connection traffic” disabled=no
add chain=prerouting connection-mark=mark-con-indonesia action=mark-packet \
new-packet-mark=indonesia passthrough=yes comment=”mark all indonesia \
traffic” disabled=no
add chain=prerouting connection-mark=mark-con-overseas action=mark-packet \
new-packet-mark=overseas passthrough=yes comment=”mark all overseas \
traffic” disabled=no

kalo ane pake spidol , koneksi raja singa seneng

abis dibedain paket mark nya , terus tinggal bikin simple queue nya

Code:
/ queue simple
add name=”harijant-indonesia” target-addresses=192.168.2.4/32 \
dst-address=0.0.0.0/0 interface=all parent=none packet-marks=indonesia \
direction=both priority=8 queue=default/default limit-at=0/0 \
max-limit=256000/256000 total-queue=default disabled=no
add name=”harijanto-overseas” target-addresses=192.168.2.4/32 \
dst-address=0.0.0.0/0 interface=all parent=none packet-marks=overseas \
direction=both priority=8 queue=default/default limit-at=0/0 \
max-limit=128000/128000 total-queue=default disabled=no


nih tutz nya yang lengkap mas bro

Code:
http://yoyok.wordpress.com/2007/06/02/memisahkan-bandwidth-lokal-dan-international-menggunakan-mikrotik/
Find all posts by this user
Quote this message in a reply
07-25-2010, 01:27 PM
Post: #8
RE: Seting Mikrotik untuk Warnet
wah tanhkyu buanget ya om, om chaer emang guanteng deh :)
Visit this user's website Find all posts by this user
Quote this message in a reply
07-25-2010, 01:37 PM
Post: #9
RE: Seting Mikrotik untuk Warnet
(07-25-2010 01:27 PM)wenkhairu Wrote:  wah tanhkyu buanget ya om, om chaer emang guanteng deh :)

udah banyak yg bilang pinter
Find all posts by this user
Quote this message in a reply
08-14-2010, 08:56 AM
Post: #10
RE: Seting Mikrotik untuk Warnet
um ganti ipnya donk yang 192.168.x.xx itu
biar nubi ini bisa paham :(
Find all posts by this user
Quote this message in a reply
Post Reply 


Topic Tools
Topic Link :
BBCode :
HTML Code :
View a Printable Version Send Thread to a Friend Subscribe to this thread
Submit Google Submit Face book Submit to Digg Submit to Reddit Submit to Furl Submit to Del.icio.us Submit to Jeqq

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  [Tutor] Remote Mikrotik Log with Freebsd syslogd chaer.newbie 7 215 05-10-2012 12:18 PM
Last Post: bot_udut
  Secure Mikrotik Winbox client side attack chaer.newbie 19 515 05-03-2012 05:16 AM
Last Post: zal_freaks
  [Ask] Step by Step User manager Mikrotik cyrus 10 404 04-20-2012 06:32 PM
Last Post: chaer.newbie
  IP forwarding Di Mikrotik supermenganteng 11 2,328 04-14-2012 09:33 PM
Last Post: nobodyknowme
  tanya mikrotik Baplak 4 239 04-09-2012 04:56 AM
Last Post: valdiadrian
  [Tutor] Implemetasi IPv6 (tunnel 6to4) on mikrotik Motaro Irhaby 8 363 04-01-2012 06:13 PM
Last Post: Motaro Irhaby
  [Solved] Anti DDOS di mikrotik 3ono 6 1,559 03-27-2012 07:32 PM
Last Post: agam atjoeng
  Limit Youtube,Ekstensi File,dan IDM di layer 7 Mikrotik linuxer46 9 472 03-26-2012 10:10 AM
Last Post: linuxer46
Wink [Tutor] Mikrotik 3.30 + License Level 6 Crack (Link Updated to Mediafire) Vandal 30 4,441 03-24-2012 01:20 PM
Last Post: linuxer46
  [Tutor] belajar mikrotik menggunakan VMware workstation dj rabell 11 834 03-22-2012 10:17 PM
Last Post: Qiezaqie

Users Browsing
1 Guest(s)


Stop SOPA/PIPA | Discuss !