Community discussions

 
thomsen
just joined
Topic Author
Posts: 21
Joined: Wed Sep 28, 2016 10:50 am
Location: Russia, Moscow

Recursive route with %interface

Wed Mar 07, 2018 1:45 pm

I have several WANs interfaces and two of them have common gateway. In route list i use this gateway 1.1.1.1%eth2 - and next one 1.1.1.1%eth3
I'd like use the recursive routing but it doesn't work in my configuration (%interface). Does someone have any idea? Netwatch?
 
sindy
Forum Guru
Forum Guru
Posts: 3959
Joined: Mon Dec 04, 2017 9:19 pm

Re: Recursive route with %interface

Wed Mar 07, 2018 10:08 pm

I have several WANs interfaces and two of them have common gateway. In route list i use this gateway 1.1.1.1%eth2 - and next one 1.1.1.1%eth3
I'd like use the recursive routing but it doesn't work in my configuration (%interface). Does someone have any idea? Netwatch?
The first question is what is your use case. As the two WAN interfaces have the same gateway, it means that they are in the same subnet. So if the gateway device or something else inside the ISP's network fails, both recursive routes which use that gateway fail regardless via which physical interface they go. So from this perspective, there is no point in having one of them as a backup for the other one. So I would bond the two physical interfaces together, to have a backup at LAN level, and if you need to use both IP addresses, attach both to the bond interface. The only obstacle here might be if you receive both addresses using DHCP.
Instead of writing novels, post /export hide-sensitive. Use find&replace in your favourite text editor to systematically replace all occurrences of each public IP address potentially identifying you by a distinctive pattern such as my.public.ip.1.
 
thomsen
just joined
Topic Author
Posts: 21
Joined: Wed Sep 28, 2016 10:50 am
Location: Russia, Moscow

Re: Recursive route with %interface

Thu Mar 08, 2018 2:55 pm

I have several WANs interfaces and two of them have common gateway. In route list i use this gateway 1.1.1.1%eth2 - and next one 1.1.1.1%eth3
I'd like use the recursive routing but it doesn't work in my configuration (%interface). Does someone have any idea? Netwatch?
The first question is what is your use case. As the two WAN interfaces have the same gateway, it means that they are in the same subnet. So if the gateway device or something else inside the ISP's network fails, both recursive routes which use that gateway fail regardless via which physical interface they go. So from this perspective, there is no point in having one of them as a backup for the other one. So I would bond the two physical interfaces together, to have a backup at LAN level, and if you need to use both IP addresses, attach both to the bond interface. The only obstacle here might be if you receive both addresses using DHCP.
It's not about that. For failover i have a different ISP (additional 3rd interface)
Eth1-Backup-ISP2
Eth2-Company1-ISP1
Eth3-Company2-ISP1
I use this configuration because one organization include two small companies and each has its own connection to the ISP with different tariffs and bandwidth.
The problem is that if i use the gateway like [1.1.1.1%eth2] the recursion does not work (route is unreachable). Either here i need to do something differently, or use a netwatch.
 
sindy
Forum Guru
Forum Guru
Posts: 3959
Joined: Mon Dec 04, 2017 9:19 pm

Re: Recursive route with %interface

Thu Mar 08, 2018 3:54 pm

I have several WANs interfaces and two of them have common gateway. In route list i use this gateway 1.1.1.1%eth2 - and next one 1.1.1.1%eth3
I'd like use the recursive routing but it doesn't work in my configuration (%interface). Does someone have any idea? Netwatch?
The first question is what is your use case. As the two WAN interfaces have the same gateway, it means that they are in the same subnet. So if the gateway device or something else inside the ISP's network fails, both recursive routes which use that gateway fail regardless via which physical interface they go. So from this perspective, there is no point in having one of them as a backup for the other one. So I would bond the two physical interfaces together, to have a backup at LAN level, and if you need to use both IP addresses, attach both to the bond interface. The only obstacle here might be if you receive both addresses using DHCP.
It's not about that. For failover i have a different ISP (additional 3rd interface)
Eth1-Backup-ISP2
Eth2-Company1-ISP1
Eth3-Company2-ISP1
I use this configuration because one organization include two small companies and each has its own connection to the ISP with different tariffs and bandwidth.
The problem is that if i use the gateway like [1.1.1.1%eth2] the recursion does not work (route is unreachable). Either here i need to do something differently, or use a netwatch.
The manual says that next-hop resolution does not work with interface names. So it seems that rather than ignoring the interface name and routing to the gateway anyway, they've decided not to route on ip%interface recursively at all. So if you need to physically route each company's traffic via its own cable because the traffic is measured on ISP's switch ports rather than by IP or MAC address, netwatch seems to be your only option.
Instead of writing novels, post /export hide-sensitive. Use find&replace in your favourite text editor to systematically replace all occurrences of each public IP address potentially identifying you by a distinctive pattern such as my.public.ip.1.
 
tippenring
Member Candidate
Member Candidate
Posts: 179
Joined: Thu Oct 02, 2014 8:54 pm
Location: St Louis MO
Contact:

Re: Recursive route with %interface

Thu Mar 08, 2018 4:04 pm

VRF is probably what you're looking for.

https://wiki.mikrotik.com/wiki/Manual:V ... Forwarding

Who is online

Users browsing this forum: MSN [Bot] and 86 guests