Hello,
I am trying to use wan-failover over two connections: FTTH and LTE, both via DHCP.
The problem I have is with the FTTH connection, where I get a /32 address (e.g., address X.a.b.c/32 with gateway Y.e.f.g.0) and wan_lb complains with:
wan_lb[680038]: failure to insert default route on active path with this command: ip route replace table 201 default dev eth0 via Y.e.f.g.0
If I execute the command manually, the error message is:
Error: Nexthop has invalid gateway
The command succeeds if I add the onlink option.
Here is my configuration:
show load-balancing wan
flush-connections
interface-health eth0 {
failure-count 3
nexthop dhcp
success-count 5
test 10 {
resp-time 5
target 1.1.1.1
ttl-limit 1
type ping
}
}
interface-health eth1.11 {
failure-count 3
nexthop dhcp
success-count 5
test 10 {
resp-time 5
target 1.0.0.1
ttl-limit 1
type ping
}
}
rule 10 {
failover
inbound-interface eth1.10
interface eth0 {
weight 100
}
interface eth1.11 {
weight 1
}
protocol all
}
eth0
is the concerned FTTH connection, eth1.11
is the LTE connection and eth1.10
is my LAN.
I have tried to manually set the gateway address in nexthop
, but the result is the same.
At the moment, the only solution I have found is to replace nexthop dhcp
with nexthop <eth0 address>
.
I would like to ask:
- Is that the result of a bug in
wan_lb
not properly handling the /32 address and the corresponding gateway? - Is there any drawback in using the
eth0
IP address fornexthop
? - What should
nexthop
be exactly? - Am I doing something wrong?
I am using version 1.4-rolling-202304290647
.
Thanks in advance and, please, let me know if I can provide any additional information.