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.