Closed pony1k closed 9 months ago
The proposed solution sounds good to me! @G10h4ck @spiccinini @altergui any better proposal?
@pony1k I suppose you tested it and worked fine, in that case it seems good to me to, and may explain a few erratically network breakage, that would not happen anymore with this change
I was wondering why I could not reach one router with it's ipv4-address configured on br-lan, but could reach it using its link local ipv6 address. When I looked at the routers main routing table, it looked like this:
Usually it looks like this:
(The order of the
10.13.0.0/24
routes is swapped) I think that all I had done was booting the router. Maybe I did somevi /etc/config/lime-node
and somelime config
and somelime apply
, but nothing special, really. One way to artificially produce this condition is to remove the address on br-lan and add it back. Anyway, the kernel always seems to choose the first one, and if it hasdev anygw
, anygw ether address is used and the packet does not arrive. If the router in question is the gateway to the internet, the internet stops. Uci configuration does not seem to allow to not add a prefix route, but it gives us the optionmetric
. I propose we use it to give the prefix route of anygw a higher metric, like so:Then the routing table looks like this:
The kernel will always choose the route with dev
br-lan
and the problem does no longer occur.