Showing posts with label Mikrotik. Show all posts
Showing posts with label Mikrotik. Show all posts

Wednesday, November 27, 2013

Static Route on Mikrotik [Vol. 2]

Yups,, berikut ini adalah routing static dengan 3 router dengan catatan router B and C tidak tersambung dengan kabel UTP.
langsung aja cekidot, berikut shcema ya:
Alright let’s go to config:
1. RouterA:
ip lan: 192.168.10.1/24
ip to router B: 10.1.1.1/30
ip to router C: 10.20.5.1/30
and it’s config route
/ip route
add comment=”" disabled=no distance=1 dst-address=192.168.20.0/24 gateway=10.1.1.2 scope=30 target-scope=10
add comment=”" disabled=no distance=1 dst-address=192.168.30.0/30 gateway=10.20.5.2 scope=30 target-scope=10

2. Router2:
ip lan:192.168.20.1/24
ip to router A:10.1.1.2/30
Config route:

/ip route
add disabled=no distance=1 dst-address=10.20.5.0/30 gateway=10.1.1.1 scope=30 target-scope=10
add disabled=no distance=1 dst-address=192.168.10.0/24 gateway=10.1.1.1 scope=30 target-scope=10
add disabled=no distance=1 dst-address=192.168.30.0/24 gateway=10.1.1.1 scope=30 target-scope=10

3. Router3:
ip1:192.168.30.1/24
ip2:10.20.5.2/30
Config route:

/ip route
add comment=”" disabled=no distance=1 dst-address=10.1.1.0/30 gateway=10.20.5.1 scope=30 target-scope=10
add comment=”" disabled=no distance=1 dst-address=192.168.10.0/24 gateway=10.20.5.1 scope=30 target-scope=10
add comment=”" disabled=no distance=1 dst-address=192.168.20.0/24 gateway=10.20.5.1 scope=30 target-scope=10

Oke, config is finish and you can test configuration with ping IP

Fail Over on Mikrotik

Oke it’s simple configuration fail over on mikrotik, and it’s picture schema network:


Yups,,, you can configuration in router client, you just add configuration dst-address=0.0.0.0/0, check-gateway=ping and you can change distance.


/ip route
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=10.10.1.1 scope=30 target-scope=10 check-gateway=ping
add disabled=no distance=4 dst-address=0.0.0.0/0 gateway=100.50.1.1 scope=30 target-scope=10 check-gateway=ping
and you can add 2 nat in router:

/ip firewall nat
add chain=srcnat action=masquerade out-interface=ether ISP A
add chain=srcnat action=masquerade out-interface=ether ISP B
you can test configuration, by unplugging one of the lan cable from one router isp, and you try to watch the ip route is visible no change. If viewed from the router configuration that leads to the ISP distence A smaller then the priority will lead to ISP A, if the UTP cable to unplug the ISP A in the route will automatically move to ISP B

Konfigurasi Vlan di Mikrotik [Vol.1]


Kurang lebih topologi seperti gambar diatas, okey kita buat konfigurasinya:
1. Buatlah Vlan pada ether yang anda inginkan.
2. Buat ip pada ether dan vlan.
3. Lalu dilanjutkan dengan membuat DHCP pada masing-masing ip.
4. Buat Simple Queue untuk uji test bandwidth. (Nanti akan dijelaskan dibawah ya)
5. Jika sudah sambungkan ether1 ke switch kemudian dari switch pasang satu kabel mengarah ke router dan PC.


6. Arahkan kabel yang dari switch ke ether1 router, kemudian add vlan samakan id vlan dengan router pertama kemudian cek list Use Serivce Tag.
7. Dilanjutkan dengan membuat dhcp client agar mendapatkan ip, sebelum klik OK pastikan interface yang diambil adalah vlan karena jika tidak maka ip akan sama dengan yang di sett untuk ether1.
8. Buatkan bridge1 dan add vlan serta ether yang akan diarahkan ke LAN.
9. Coba anda test dengan dua komputer dan masing-masing terpasang pada kabel yang dari switch dan dari router2. Kemudian lihat apakah ip berbeda/sesuai dengan yang di sett atau tidak.
10. Dilangkah awal kita membuat Simple Queue, eem… disini kita juga bisa test bandwidth berdasarkan ip yang kita sett. Jadi masing-masing ip kita buat bandwidth yang dengan kapasitas berbeda, kemudian untuk melakukan pengetesannya anda bisa download software Btest, kemudian untuk test bandwidth ya arahkan ke gateway. Perhatikan pada Table Simple Queue apakah sudah benar atau belum.