-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Need help with redistribute default routes #112
Comments
We don't do that. Babeld will always install at most one route for a given prefix. What issue are you trying to solve?
That's strange, babeld should switch to the lower-metric one when it beacomes feasible. Could we please see your full configuration?
We don't do that. Please describe the problem you're trying to solve. |
Yes I am sorry for pref-src I was using the wrong filter
I am trying to dynamically create on the client the equivalent of this netplan config:
Which allows to have double ISP connection. the same routes are installed in master table ( with different metric ) and in separate tables ( for src ip based same ISP response )
This was the config, but I can retest better if the route with lower metric is selected
I am currently testing with a hybrid solution, by defining the more preferred routes with
and removing from the client network config the default routes from master table, but leaving the table routes and table policies |
I retested with the 2 metrics, started first the babeld with the higher metric, then the one with lower metric. The client installed the higher metric first, but after a few minutes it switched to the lower metric:
I did not wait long enough in my first test, thank you for poiting it out, I don't need the trick of splitting the routes anymore Now I am trying to tackle the pref-src
For now it only works if I do not put the routers ids, like
adds the pref-src to all the default routes Edit:
The router id matches with the config, but the filter does not seem to apply. Am I writing it wrong and the filter does not apply? |
I found that the id was missing in the install_filter, I added it: Edit: actually I need to check it more, I did the test of starting a default route with high metric first then start the router with the lower metric, and when the route was updated it kept the src of the first route instead of updating the src |
Hi,
I am testing redistribution of default routes, using 2 routes and 1 client.
The idea is to have both routes installed on the client either with different metrics, or as 1 rule with 2 nexthops of different weights
Use case: 2 ISPs, with one preferred over the other, different public IPv4 and IPv6 ranges, routers distributing the default routes with custom metric ( or weigth ), the routers would be monitoring the external connection, and change the redistribution metric or retract the distribution if an ISP goes offline. Also source routing that can work for both IPv4 and IPv6.
These are the things I tried without success:
I tried a combo of the
in
filter,pref-src <IP>
and no selector or selectors liketable 2
,ip ::/0 eq 0
,ip 0.0.0.0/0 eq 0
,id <RouterID>
but the route gets always installed in the default table, with no source, also no metric on the IPv4:What happens is that only one gets installed, the other stays "feasible". Also it is on first-come basis, so the lower metric one can end to be not the one installed. Example of a log output:
If both could be installed, the OS could choose the lower metric one. Other option could be to override the same route installed when a new lower metric is received. [Extra] nexthop merging of route + weight could be also an option
The main settings are:
Router 1:
Router 2:
Client:
Ubuntu with kernel 5.15.0-92-generic
The text was updated successfully, but these errors were encountered: