Breaking News
Loading...
20 November 2011

Cara Setting Load Balance Mikrotik ( 3 Modem di gabungkan dalam satu Mikrotik Router)

abel:
--Jika anda mempunyai 3 buah modem kemudian anda ingin gabungkan menjadi satu dengan mikrotik router, berikut ini cara settingnya:

--Remote Mikrotik Router anda dengan Winbox,download winbox ((DI SINI))
--Di halaman utama winbox pilih “New Terminal” kemudian beri nama interface ether0,ether1,ether2,ether3 dengan perintah:

/interface print

/interface set 0 name=modem1

/interface set 1 name=modem2
/interface set 2 name=modem3
/interface set 3 name=local




--Masukkan ip address untuk modem1,modem2,modem3,dal local (untuk local ip addressnya ciptaan sendiri),dengan perintah:

/ip address add address=192.168.11.2 netmask=255.255.255.0 interface=modem1

ip address add address=192.168.12.2 netmask=255.255.255.0 interface=modem2
/ip address add address=192.168.13.2 netmask=255.255.255.0 interface=modem3
/ip address add address=192.168.99.1 netmask=255.255.255.0 interface=local




--Kemudian masukkan gateway untuk modem1,modem2,modem3 dengan perintah:

/ip route add dst-address=0.0.0.0/0 gateway=192.168.11.1 distance=1 check-gateway=ping
/ ip route add dst-address=0.0.0.0/0 gateway=192.168.12.1 distance=1 check-gateway=ping
/ip route add dst-address=0.0.0.0/0 gateway=192.168.13.1 distance=1 check-gateway=ping

--Kemudian masukkan DNS,dengan perintah:

/ip dns set servers=203.130.193.74,203.130.208.18 allow-remote-request=yes

Jika timbul keterangan bad argument name servers (line 1 column 13) maka ubah perintahnya seperti di bawah ini:

/ip dns set primary-dns=203.130.193.74


/ip dns set secondary-dns=203.130.208.18 allow-remote-request=yes




--Kemudian masukkan NAT untuk modem1,modem2,modem3,dengan perintah:

/ip firewall nat add chain=srcnat out-interface=modem1 action=masquerade
/ ip firewall nat add chain=srcnat out-interface=modem2 action=masquerade
/ip firewall nat add chain=srcnat out-interface=modem3 action=masquerade




--Kemudian Address-list,dengan perintah:

/ip firewall address-list add address=192.168.11.0/24 list=lokal;/ ip firewall address-list add address=192.168.12.0/24 list=lokal;/ip firewall address-list add address=192.168.13.0/24 list=lokal;/ip firewall address-list add address=192.168.99.0/24 list=lokal




--Kemudian Mangle Traffic lokal,dengan perintah:

/ip firewall mangle add action=accept chain=prerouting dst-address-list=lokal in-interface=local comment=”traffic_local”

/ip firewall mangle add action=accept chain=output dst-address-list=lokal




--Kemudian Buat Mangle untuk Mark-Connection Traffic ,Dengan perintah:

/ip firewall mangle add action=mark-connection chain=prerouting connection-mark=no-mark in-interface=modem1 new-connection-mark=con-from-modem1 passthrough=yes comment=”Traffic_modem1”

/ip firewall mangle add action=mark-connection chain=prerouting connection-mark=no-mark in-interface=modem2 new-connection-mark=con-from-modem2 passthrough=yes comment=”Traffic_modem2”

/ip firewall mangle add action=mark-connection chain=prerouting connection-mark=no-mark in-interface=modem3 new-connection-mark=con-from-modem3 passthrough=yes comment=”Traffic_modem3”




--Kemudian buat Mangle supaya traffic DNS melewati Gateway ISP modem1,modem2,modem3 ….bukan dari gateway yang lain….perintahnya:


/ip firewall mangle add action=mark-connection chain=output comment=dns dst-address=203.130.193.74 dst-port=53 new-connection-mark=dns passthrough=yes protocol=tcp 

/ip firewall mangle add action=mark-connection chain=output dst-address=203.130.193.74 dst-port=53 new-connection-mark=dns passthrough=yes protocol=udp

/ip firewall mangle add action=mark-routing chain=output connection-mark=dns new-routing-mark=route-to-modem1 passthrough=no




--Kemudian buat Routing BackUp,gunanya bila di antara 3 modem tersebut ada sebuah modem yang nggak konek maka semua koneksi akan melewati gateway yang masih konek internet,perintahnya:


/ip route add check-gateway=ping dst-address=0.0.0.0/0 gateway=192.168.11.1 routing-mark=route-to-modem1 distance=1
/ip route add check-gateway=ping dst-address=0.0.0.0/0 gateway=192.168.12.1 routing-mark=route-to-modem1 distance=2
/ip route add check-gateway=ping dst-address=0.0.0.0/0 gateway=192.168.13.1 routing-mark=route-to-modem1 distance=3
/ip route add check-gateway=ping dst-address=0.0.0.0/0 gateway=192.168.12.1 routing-mark=route-to-modem2 distance=1
/ip route add check-gateway=ping dst-address=0.0.0.0/0 gateway=192.168.11.1 routing-mark=route-to-modem2 distance=2
/ip route add check-gateway=ping dst-address=0.0.0.0/0 gateway=192.168.11.1 routing-mark=route-to-modem2 distance=3




--Cara Setting Load Balance Mikrotik ( 3 Modem di gabungkan dalam satu Mikrotik Router) Telah selesai-------------------Selamat Mencoba--

0 komentar:

Post a Comment

 
Toggle Footer