Community discussions

MikroTik App
 
ECT
just joined
Topic Author
Posts: 1
Joined: Thu Feb 09, 2012 5:51 pm

Help with Load Balancing...

Thu Feb 09, 2012 6:06 pm

I have a simple setup like the as shown in the layout diagram. Here is the script I have used... the only difference is that I set the local interface to do DHCP. It is giving me dhcp and allowing me to ping the interfaces, but I cannot ping the adsl modems or anything else.

I have attached the layout and the export from the mikrotik. Thanks for any help!!

/ ip address
add address=192.168.123.1/24 network=192.168.123.0 broadcast=192.168.123.255 interface=Local
add address=192.168.1.2/24 network=192.168.1.0 broadcast=192.168.1.255 interface=wlan1
add address=192.168.2.2/24 network=192.168.2.0 broadcast=192.168.2.255 interface=wlan2

/ ip route
add dst-address=0.0.0.0/0 gateway=192.168.1.1,192.168.2.1 check-gateway=ping

/ ip firewall nat
add chain=srcnat out-interface=wlan1 action=masquerade
add chain=srcnat out-interface=wlan2 action=masquerade

/ ip firewall mangle
add chain=input in-interface=wlan1 action=mark-connection new-connection-mark=wlan1_conn
add chain=input in-interface=wlan2 action=mark-connection new-connection-mark=wlan2_conn
add chain=output connection-mark=wlan1_conn action=mark-routing new-routing-mark=to_wla1
add chain=output connection-mark=wlan1_conn action=mark-routing new-routing-mark=to_wla2

/ ip route
add dst-address=0.0.0.0/0 gateway=192.168.1.1 routing-mark=to_wla1
add dst-address=0.0.0.0/0 gateway=192.168.1.2 routing-mark=to_wla2
You do not have the required permissions to view the files attached to this post.

Who is online

Users browsing this forum: clambert, sas2k, scoobyn8 and 194 guests