Community discussions

MikroTik App
 
Jzatan
just joined
Topic Author
Posts: 3
Joined: Wed May 02, 2018 11:21 am
Location: Latvia, Jelgava

Automatic default route change

Sun May 23, 2021 6:16 pm

Hello,

Whenever LAN_1 is enabled, dynamic routing uses the LAN connection instead of WAN (Route list) and cant find route to internet.
default route.png
Please help.
You do not have the required permissions to view the files attached to this post.
 
sindy
Forum Guru
Forum Guru
Posts: 10205
Joined: Mon Dec 04, 2017 9:19 pm

Re: Automatic default route change  [SOLVED]

Sun May 23, 2021 6:36 pm

There's no "dynamic routing", the reason why it happens is that 192.168.1.1 (the gateway IP) fits both into 192.168.1.0/24 (the WAN subnet) and 192.168.1.0/25 (the LAN1 subnet), and if both interfaces are up, RouterOS probably throws a coin to choose. But such a setup with overlapping subnets attached to different interfaces will cause more trouble than just this one.

So you could configure the default route indicating both IP address and interface as gateway (192.168.1.1%WAN), but doing so would not resolve the other issues.

What are your reasons to have the two halves of the WAN subnet assigned as LAN1 and LAN2 subnets?
 
Jzatan
just joined
Topic Author
Posts: 3
Joined: Wed May 02, 2018 11:21 am
Location: Latvia, Jelgava

Re: Automatic default route change

Sun May 23, 2021 6:56 pm

There's no "dynamic routing", the reason why it happens is that 192.168.1.1 (the gateway IP) fits both into 192.168.1.0/24 (the WAN subnet) and 192.168.1.0/25 (the LAN1 subnet), and if both interfaces are up, RouterOS probably throws a coin to choose. But such a setup with overlapping subnets attached to different interfaces will cause more trouble than just this one.

So you could configure the default route indicating both IP address and interface as gateway (192.168.1.1%WAN), but doing so would not resolve the other issues.

What are your reasons to have the two halves of the WAN subnet assigned as LAN1 and LAN2 subnets?
Thanks, I didn't think about that.

Who is online

Users browsing this forum: No registered users and 87 guests