Hi,
I have the following scenario:
- 1 RB750G Router OS 3.31
- 4 DSL/Cable connections with dynamic IP addresses
- 1 LAN (fixed IP address)
I’d like to load balance those four links (they all have the same speed).
So far I’ve done this /the default conf:
add add-default-route=yes comment=“default configuration” default-route-distance=0 disabled=no interface=ether1-gateway use-peer-dns=yes
use-peer-ntp=yes
add add-default-route=yes comment=“” default-route-distance=0 disabled=no interface=ether3-gateway use-peer-dns=yes use-peer-ntp=yes
add add-default-route=yes comment=“” default-route-distance=0 disabled=no interface=ether4-gateway use-peer-dns=yes use-peer-ntp=yes
add add-default-route=yes comment=“” default-route-distance=0 disabled=no interface=ether5-gateway use-peer-dns=yes use-peer-ntp=yes
add action=masquerade chain=srcnat comment=“default configuration” disabled=no out-interface=ether1-gateway
I’ve read the PCC manual (http://wiki.mikrotik.com/wiki/PCC) but got some questions. The first of all is what do I have to change in those commands in order to use the dynamic address instead of the ip (which is dynamic)?
- Pre routing
In the PCC we have
add chain=prerouting dst-address=10.111.0.0/24 action=accept in-interface=Local
add chain=prerouting dst-address=10.112.0.0/24 action=accept in-interface=Local
In the pcc those are the network addresses of the “point-to-point” connection. In my case I don’t know that (and they will change over time anyway).
Q - What do I have to use instead of dst-address?
- Default routing
In the PCC we have
add chain=prerouting dst-address-type=!local in-interface=Local per-connection-classifier=both-addresses:2/0
action=mark-connection new-connection-mark=wlan1_conn passthrough=yes
add chain=prerouting dst-address-type=!local in-interface=Local per-connection-classifier=both-addresses:2/1
action=mark-connection new-connection-mark=wlan2_conn passthrough=yes
Q - Is this local (lowercase) a keyword?
Q - Since I am going to have 4 wans do I just copy the lines (with the changes to the wlan2_conn (mark) being replaced with the other 2 wans? What do I put in the per-connection-classifier=both-addresses:2/0 ? Do I use 4/0 4/1 4/2 4/3 ?
- Outgoing route
In the PCC we have
/ ip route
add dst-address=0.0.0.0/0 gateway=10.111.0.1 routing-mark=to_wlan1 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=10.112.0.1 routing-mark=to_wlan2 check-gateway=ping
Q - In my case do I replace the gateway with what?
- check gateway
In the pcc we have
add dst-address=0.0.0.0/0 gateway=10.111.0.1 distance=1 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=10.112.0.1 distance=2 check-gateway=ping
Q - What do I put instead of the gateway address?
Regards.