-
Notifications
You must be signed in to change notification settings - Fork 12
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
Skip implicit default route for IPv4 autoconf #923
Comments
Alternative, hard-coded solution, for Infix -- route maps!
I have not tried it, but with this we could deny all routes that have distance==254 from being redistributed. |
CCB: decsion, drop default route entirely! No need for "automatic" or clever handling, user can set this up manually, if needed. |
troglobit
added a commit
that referenced
this issue
Feb 23, 2025
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This issue started out as a proposal to make the "implicit default route for IPv4 autoconf" to be configurable, but CCB decided to remove this implicit route completely. Motivation: It can be added by explicitly by those who want it.
The description below describes the original idea.
Description
It would be good to be able to disable the implicit default route which Infix currently sets up on interfaces with IPv4 autoconfiguration.
Perhaps by an additional
no default-route
setting in the autoconf contextMotivation
When configuring IPv4 autoconfiguration (169.254.x.x/16, also known as zeroconf) for an interface, Infix implicitly adds a default route through that interface. This default route has lowest possible routing PREFerence (254), so any default route learnt elsewhere will override.
The purpose of this default route is to facilitate easy setup with autoconf, even on links where there are units with only routeable addresses. See man page of avahi-autoipd for the following motivation/example of added default route
Although this implicit default route seems like a good default, it would be good if it can be disabled. In OSPF, you can make a router inject a default route into OSPF, either
always
or only when the router itself has an active default route.The latter is done by
set default-route-advertise enabled
in OSPF context, and is good to use to avoid routing to a dead end.This OSPF use case would be incompatible with use of IPv4 autoconfiguration on the same router, unless we can disable the implicit default route.
Additional Information
A suitable test case would be
Without disabling the implicit default route, B would get a default route from A via OSPF.
If A disables the implicit default route, it will no longer advertise it and B would not get a default route.
General Information
Anyone can help out by sponsoring development of new features or contributing pull requests.
Please use this issue for discussions related to the feature.
The text was updated successfully, but these errors were encountered: