Quantcast
Channel: MikroTik
Viewing all articles
Browse latest Browse all 14706

Beginner Basics • Re: Dual WAN, same Gateway, no need for load balancing or failover, just specify which vlans use which wan port

$
0
0
Nonsensical.............
The use of the dst address first entry is to ensure any traffic to any other subnets, doesnt go out the tunnel. Since we are forcing anything with a source address of 10...5 out the tunnel.
So in this case the first rule makes no sense to me????

OK, I think I understood what you meant. Is this better?
Code:
/routing tableadd disabled=no fib name=useWAN2/routing ruleadd action=lookup-only-in-table disabled=no dst-address=10.10.1.0/24 table=\    mainadd action=lookup-only-in-table disabled=no dst-address=10.10.2.0/24 table=\    mainadd action=lookup-only-in-table disabled=no dst-address=10.10.3.0/24 table=\    mainadd action=lookup-only-in-table disabled=no dst-address=10.10.4.0/24 table=\    mainadd action=lookup disabled=no src-address=10.10.5.0/24 table=useWAN2/ip routeadd check-gateway=ping disabled=no distance=4 dst-address=0.0.0.0/0 gateway=\    27.125.128.1%wan2 pref-src="" routing-table=main scope=30 \    suppress-hw-offload=no target-scope=10add check-gateway=ping disabled=no distance=1 dst-address=0.0.0.0/0 gateway=\    27.125.128.1%wan1 pref-src="" routing-table=main scope=30 \    suppress-hw-offload=no target-scope=10add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=27.125.128.1%wan2 \    pref-src="" routing-table=useWAN2 scope=30 suppress-hw-offload=no \    target-scope=10
I also noticed I had a couple of dynamic routes that were active and using vrf. Thought they may have been a throw back to a previous failed attempt so I deleted them. So far, using nothing more scientific than going to a whatsmyip website, 10.10.5.0/0 looks like it's routing to WAN2 and the others to WAN1.

Statistics: Posted by dalben — Mon Dec 25, 2023 12:42 pm



Viewing all articles
Browse latest Browse all 14706

Trending Articles