Hi,
I test in my “laboratory” (RB951 + RB751 both v5.19) Dual WAN 2xWAN + IP Failover
RB951 (gives two ISP lines WAN1 and WAN2)
RB751:
WAN1 - DSL Dynamic IP (all traffic without WAN2)
WAN2 - DSL DYnamic IP (voip, rdp)
LAN
- ip failover (no script)
with static IP everything is working great (only I have problem with ftp all trafic should go via WAN2 but when i upload to ftp it goes with WAN1 whe I download form FTP it goes via WAN2.. strange)
RB751:
/ip address
add address=192.168.0.1/24 disabled=no interface=LAN network=192.168.0.0
add address=192.168.100.253/24 disabled=no interface=WAN1 network=192.168.100.0
add address=192.168.200.253/24 disabled=no interface=WAN2 network=192.168.200.0
/ip firewall nat
add action=masquerade chain=srcnat disabled=no out-interface=WAN1
add action=masquerade chain=srcnat disabled=no out-interface=WAN2
/ip firewall mangle
add action=mark-routing chain=prerouting disabled=no dst-port=21 in-interface=LAN new-routing-mark=mark_WAN2 passthrough=no protocol=tcp
add action=mark-routing chain=prerouting disabled=no in-interface=LAN layer7-protocol=skypeout new-routing-mark=mark_WAN2 passthrough=no protocol=udp
add action=mark-routing chain=prerouting disabled=no in-interface=LAN layer7-protocol=sip new-routing-mark=mark_WAN2 passthrough=no
add action=mark-routing chain=prerouting disabled=no in-interface=LAN new-routing-mark=mark_WAN1 passthrough=no
/ip route
add check-gateway=ping disabled=no distance=1 dst-address=0.0.0.0/0 gateway=8.8.4.4 routing-mark=mark_WAN2 scope=30 target-scope=10
add check-gateway=ping disabled=no distance=2 dst-address=0.0.0.0/0 gateway=8.8.8.8 routing-mark=mark_WAN2 scope=30 target-scope=10
add check-gateway=ping disabled=no distance=1 dst-address=0.0.0.0/0 gateway=8.8.8.8 routing-mark=mark_WAN1 scope=30 target-scope=10
add check-gateway=ping disabled=no distance=2 dst-address=0.0.0.0/0 gateway=8.8.4.4 routing-mark=mark_WAN1 scope=30 target-scope=10
add disabled=no distance=1 dst-address=8.8.4.4/32 gateway=192.168.200.1 scope=10 target-scope=10
add disabled=no distance=1 dst-address=8.8.8.8/32 gateway=192.168.100.1 scope=10 target-scope=10
/ip route rule
add action=lookup disabled=no interface=WAN1 routing-mark=mark_WAN1 src-address=192.168.0.0/24 table=mark_WAN1
add action=lookup disabled=no interface=WAN2 routing-mark=mark_WAN2 src-address=192.168.0.0/24 table=mark_WAN2
as I wrote, with static IP there is no problem but client have DSL lines with dynamic IP, when I try to change to DHCP client on WAN1 and WAN2 it’s not working.
I change:
add disabled=no distance=1 dst-address=8.8.4.4/32 gateway=192.168.200.1 scope=10 target-scope=10
to
add disabled=no distance=1 dst-address=8.8.4.4/32 gateway=WAN2 scope=10 target-scope=10
etc..
but it’s still not working, no internet, pings are not going, I try to disable, and enable default routes in DHCP Clients on WANs but still no luck.
Can you help me with this? Thank You.