2 Line Speedy Using Load Balancing and Fail Over
at Zielnet Cyber Corner
Modem ADSL 1----192.168.1.1---|
|
V
192.168.1.2/24
Mikrotik RouterOS--> 192.168.0.60/24--> Switch/Hub --> Client-->
192.168.2.2/24
^
|
Modem ADSL 2----192.168.2.1---|
KONFIGURASI
1. Interface Konfigurasi
/interface set ether1 name=speedy1 /192.168.1.2
/interface set ether2 name=speedy2 /192.168.2.2
/interface set ether3 name=local /192.168.0.60
2. IP Address Konfigurasi
ip address add address=192.168.1.2 network=192.168.1.0 broadcast=192.168.1.255 interface=speedy1
ip address add address=192.168.2.2 network=192.168.2.0 broadcast=192.168.2.255 interface=speedy2
ip address add address=192.168.0.60 network=192.168.0.0 broadcast=192.168.0.255 interface=local
3. Routing IP
ip route add dst-address=0.0.0.0/0 gateway 192.168.2.1 scope=255 target-scope=10 routing-mark=odd comment="" disabled=no
ip route add dst-address=0.0.0.0/0 gateway 192.168.1.1 scope=255 target-scope=10 routing-mark=even comment="" disabled=no
4. Mangle Marking Packet
ip firewall mangle
add chain=prerouting in-interface=local connection-state=new nth=1,1,0 action=mark-connection new-connection-mark=odd passtrough=yes comment="load balancing" disabled=no
add chain=prerouting in-interface=local connection-mark=odd action=mark-routing new-routing-mark=odd passthrough=no comment="" disabled=no
add chain=prerouting in-interface=local connection-state=new nth=1,1,1 action=mark-connection new-connection-mark=even passtrough=yes comment="" disabled=no
add chain=prerouting in-interface=local connection-mark=even action=mark-routing new-routing-mark=even passthrough=no comment="" disabled=no
NAT
ip firewall nat add chain=srcnat out-interface=speedy1 action=masquerade
ip firewall nat add chain=srcnat out-interface=speedy2 action=masquerade
----- IP Address Silahkan Dikonfigurasi Tergantung Pemakai -----
Semoga Bermanfaat... Klo ngk jalan scriptnya, brarti ada yg salah ketik.
Mohon maaf adza yaaaa.
Udah dcoba dan sukse
untuk lebih jelas kunjungi link ini :
http://opensource.telkomspeedy.com/forum/viewtopic.php?pid=122643
at Zielnet Cyber Corner
Modem ADSL 1----192.168.1.1---|
|
V
192.168.1.2/24
Mikrotik RouterOS--> 192.168.0.60/24--> Switch/Hub --> Client-->
192.168.2.2/24
^
|
Modem ADSL 2----192.168.2.1---|
KONFIGURASI
1. Interface Konfigurasi
/interface set ether1 name=speedy1 /192.168.1.2
/interface set ether2 name=speedy2 /192.168.2.2
/interface set ether3 name=local /192.168.0.60
2. IP Address Konfigurasi
ip address add address=192.168.1.2 network=192.168.1.0 broadcast=192.168.1.255 interface=speedy1
ip address add address=192.168.2.2 network=192.168.2.0 broadcast=192.168.2.255 interface=speedy2
ip address add address=192.168.0.60 network=192.168.0.0 broadcast=192.168.0.255 interface=local
3. Routing IP
ip route add dst-address=0.0.0.0/0 gateway 192.168.2.1 scope=255 target-scope=10 routing-mark=odd comment="" disabled=no
ip route add dst-address=0.0.0.0/0 gateway 192.168.1.1 scope=255 target-scope=10 routing-mark=even comment="" disabled=no
4. Mangle Marking Packet
ip firewall mangle
add chain=prerouting in-interface=local connection-state=new nth=1,1,0 action=mark-connection new-connection-mark=odd passtrough=yes comment="load balancing" disabled=no
add chain=prerouting in-interface=local connection-mark=odd action=mark-routing new-routing-mark=odd passthrough=no comment="" disabled=no
add chain=prerouting in-interface=local connection-state=new nth=1,1,1 action=mark-connection new-connection-mark=even passtrough=yes comment="" disabled=no
add chain=prerouting in-interface=local connection-mark=even action=mark-routing new-routing-mark=even passthrough=no comment="" disabled=no
NAT
ip firewall nat add chain=srcnat out-interface=speedy1 action=masquerade
ip firewall nat add chain=srcnat out-interface=speedy2 action=masquerade
----- IP Address Silahkan Dikonfigurasi Tergantung Pemakai -----
Semoga Bermanfaat... Klo ngk jalan scriptnya, brarti ada yg salah ketik.
Mohon maaf adza yaaaa.
Udah dcoba dan sukse
untuk lebih jelas kunjungi link ini :
http://opensource.telkomspeedy.com/forum/viewtopic.php?pid=122643
Tidak ada komentar:
Posting Komentar