Buscar

Senin, 02 November 2009

Tutorial Load Balancing dengan Mikrotik RouterOS part 2 (Nyubi,, yg bikin post jg lg blajar)

Misalkan kita punya 2 koneksi ADSL Speedy dan 1 koneksi LAN :

1. ModemSpeedy1 (192.168.0.1)
2. ModemSpeedy2 (192.168.1.1)
3. LAN (192.168.2.1)

Skema Jaringan yang akan kita buat :

(192.168.0.1) ModemSpeedy1--- ---ModemSpeedy2 (192.168.1.1)
| |
| |
(192.168.0.254) eth0 eth1( 192.168.1.254)
[ M i k r o t i k ]
(192.168.2.254/24)
eth2
|
|
(192.168.2.0/24)
AccessPoint


1. Beri IP Address untuk masing-masing ethernet.

Script : /ip address add address=192.168.0.254/24 interface=speedy1
/ip address add address=192.168.1.254/24 interface=speedy2
/ip address add address=192.168.2.254/24 interface=LAN

2. Buat rule.

Script : /ip firewall mangle add chain=prerouting src-address=192.168.2.0/24 action=mark-routing new-routing-mark=LAN
Ket : untuk menandai paket yang berasal dari 192.168.2.0/24 dengan nama=LAN

3. Set Gateway untuk masing-masing network.

Script : /ip route add gateway=192.168.0.1 dst-address=0.0.0.0/0 routing-mark=LAN
/ip route add gateway=192.168.1.1 dst-address=0.0.0.0/0 routing-mark=LAN
Ket : untuk menandai bahwa paket yang berasal dari 192.168.2.0/24 akan diteruskan ke 2 gateway speedy yaitu 192.168.0.1 dan 192.168.1.1

4. Buat rule nat-masquerade untuk network 192.168.2.0/24.

Script : /ip firewall nat add chain=srcnat action=masquerade src-address=192.168.2.0/24
/ip firewall nat add chain=srcnat action=masquerade out-interface=speedy1
/ip firewall nat add chain=srcnat action=masquerade out-interface=speedy2

To be continued... (Mungkin blum slesai...)

posted by
Rosyid

repost by
kei

-B.R-

0 komentar:

¿Te animas a decir algo?

 
lost in space | Copyright © 2011 Designed by: compartidisimo | With the technology: Blogger