You are on page 1of 1

1.

Set IP Address Mikrotik :

/ip address
add address=192.168.1.2/24 network=192.168.1.0 broadcast=192.168.1.255
interface=Speedy1
add address=192.168.2.2/24 network=192.168.2.0 broadcast=192.168.2.255
interface=Speedy2
add address=192.168.0.1/24 network=192.168.0.0 broadcast=192.168.0.255
interface=Local

2. Set Routes

/ip routes
add dst-address=0.0.0.0/0 gateway=192.168.1.1 mark=Speedy1
add dst-address=0.0.0.0/0 gateway=192.168.2.1 mark=Speedy2

3. Set Mangle (untuk load balancing)

/ip firewall mangle


add chain=prerouting action=mark-connection new-connection-mark=Speedy1
passthrough=yes connection-state=new in-interface=Local extra-nth=2,1
add chain=prerouting action=mark-routing new-routing-mark=Speedy1 passthrough=no
in-interface=Local connection-mark=Speedy1 add chain=prerouting action=mark-
connection new-connection-mark=Speedy2 passthrough=yes connection-state=new in-
interface=Local extra-nth=2,2
add chain=prerouting action=mark-routing new-routing-mark=Speedy2 passthrough=no
in-interface=Local connection-mark=Speedy2

4. Set NAT (untuk load balancing)

/ip firewall Nat


add chain=srcnat action=masquerade

atau

/ip firewall Nat


add chain=srcnat out-interface=Speedy1 action=masquerade
add chain=srcnat out-interface=Speedy2 action=masquerade

You might also like