Konsep LOAD BALANCING
Sebelum BEraksi Jangan Lupa Setup Ethernet / Interface Card ( NIC ) atau Bahasa Gaulnya ( Lan Card ) dengan konfigurasi Sebagai Berikut :
Perangkat 3 Lan Card -> 2 Isp ( WAN ), 1 Local ( LAN )
1. Pake WinBox masuk ke -> IP -> Address
-> klik
[+] -> isikan Address : 192.168.1.1/24 _
Network : 192.168.1.0 |
Broadcast : 192.168.1.255 | Konfigurasi LAN ( Local)
Interface : Ether1 _|
-> klik
[+] -> isikan Address : 192.168.2.2/24 _
Network : 192.168.2.0 |
Broadcast : 192.168.2.255 | Konfigurasi WAN 1
Interface : Ether2 _|
-> klik
[+] -> isikan Address : 192.168.3.2/24 _
Network : 192.168.3.0 |
Broadcast : 192.168.3.255 | Konfigurasi WAN 2
Interface : Ether3 _|
2. Buat Mangle. Pake WinBox pilih -> New Terminal
Paste kan Kode Berikut
/ip firewall mangle [lalu enter]
add chain=prerouting in-interface="ether1" connection-state=new nth=1,1,0 action=mark-connection new-connection-mark=lb_1 passthrough=yes comment="LB Client" disabled=no
add chain=prerouting in-interface="ether1" connection-mark=lb_1 action=mark-routing new-routing-mark=route_lb_1 passthrough=no comment="" disabled=no
add chain=prerouting in-interface="ether1" connection-state=new nth=1,1,1 action=mark-connection new-connection-mark=lb_2 passthrough=yes comment="" disabled=no
add chain=prerouting in-interface="ether1" connection-mark=lb_2 action=mark-routing new-routing-mark=route_lb_2 passthrough=no comment="" disabled=no [lalu enter]
3. Buat Nat. Pake WinBox pilih -> New Terminal
Lagi Lagi Paste kan [ maklum sebagai newbie males nulis ]
/ ip firewall nat
add chain=srcnat out-interface="ether3" action=masquerade comment="" disabled=no
add chain=srcnat out-interface="ether2" action=masquerade comment="" disabled=no
4. Buat Route. Pake WinBox pilih -> New Terminal
Copy Paste Lagi Bosssss
/ ip route
add dst-address=0.0.0.0/0 gateway=192.168.2.1 scope=255 target-scope=10 routing-mark=route_lb_1 comment="" disabled=no
add dst-address=0.0.0.0/0 gateway=192.168.3.1 scope=255 target-scope=10 routing-mark=route_lb_2 comment="" disabled=no
add dst-address=0.0.0.0/0 gateway=192.168.3.1 scope=255 target-scope=10 comment="default routing connection" disabled=no
Sampai Disini Load Balancing Telah Beres...
Notes : Semua Koneksi WAN dengan IP Static dan Gateway ke IP modem. kalo untuk koneksi PPOE silahkan di configurasi sendiri. Karena PPOE dial saya dari modem semua. jadi MT tinggal Route aja.
DNS Resolver ( bisa juga disebut DNS Forwarder atau apalah saya juga bingung)
Pake WinBox masuk ke -> IP -> DNS
-> Klik Settings
-> masukkan Primary Dan Secondary DNS dari ISP nya
-> centang
[v] allow remote requests
Pake WinBox masuk ke -> IP -> Firewall -> NAT
-> klik
[+] -> isikan Chain : dstnat
protokol : 17(UDP)
dstport : 53
->Pindah Ke Sub Menu
Action
action : redirect
to ports : 53
->Klik
OK biar Kesimpen
-> Bikin Sekali lagi dengan
protokol di isi : 6(TCP)
Sampai Disini DNS Resolvernya success
kamu bisa tambahkan sendiri Host + NS Resolution dari web web yang sering dibuka biar tambah cepet browsing nya
Lalu Dimana
Secret Featurenya??
Secret Featurenya adalah
1. Mencegah YM dan MIRC Diskonek saat Load Balancing
pada mangle pembuatan connection mark yang telah dibuat di Load Balancing tadi [ bukalah pakai WinBox -> Ip -> Firewall -> mangle ] pada kolom protocol tambahkan 6(TCP) dan dst port 80 ( jangan lupa aplikasikan pada kedua mangle tersebut baik lb_1 maupaun lb_2 )
apa fungsinya ??
fungsinya semua koneksi non HTTP (80) akan di routing menggunakan default routing conncetion alias satu IP Route jadi ndak bolak balik drop.
2. Settingan Gila Ala Manipulasi TOS
anda sering gagal membuat manipulasi TOS.. pakai ini dijamin berhasil
pakai WinBox -> Ip -> Firewall -> NAT
klik
[+]
isikan chain : dstnat
protocol : 1 (icmp)
in interface : ether1
-> di menu action
action : redirect
to ports : 1
klik OK
lalu silahkan coba PING atau TRACERT dan dijamin anda NGUAKAK KAK KAK KAK.
3. Fail Over Gateway Backup
pake WinBox -> IP -> Routes
[+]
destination : 0.0.0.0/0
gateway : 192.168.2.1 distance : 2
Sumber : forummikrotik