-
Notifications
You must be signed in to change notification settings - Fork 119
Patches to add flexibility to odhcpd's Route Info Option handling #33
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
base: master
Are you sure you want to change the base?
Conversation
In RA server mode, odhcpd parses the routing table for unreachable routes and announces such routes on the interface via IPv6 RA Route Info Options. On a router an unreachable route typically represents the prefix assigned to the router via prefix delegation or some other mechanism. Announcing the unreachable route via RA makes all the prefixes of the router reachable from auto-configured hosts. This patch makes this feature configurable via the new configuration option ra_unreachable (turned on by default).
In some network scenarios it may be necessary to announce manually configured routes via the IPv6 Route Info Option. This patch implements a new configuration option called ra_route which makes this possible. The option is a list of IPv6 network prefixes to announce, optionally followed by a space-delimited preference identifier (low/medium/high). For example, the following configuration: list ra_route 'fd00::/16' list ra_route '2008:1234::/32 high' Would add two more Route Info Options to the RA message (in addition to any RI options automatically generated odhcpd) with the specified routes. The second route will be announced with pref=high.
|
ping @dedeckeh |
|
Why has this never been merged? This would implement RFC4191 (https://tools.ietf.org/html/rfc4191) from what I understand. |
|
This is an useful feature, why not merge it for this long time? |
|
any news? |
|
@Alphix I think at least statically defining some routes could be a useful feature here. We'd have to pick this in ourselves since the source repo is gone. |
Unfortunately, I no longer have the source repository after such a long time. But you can still view the contents of the patches here on GitHub. It should not be hard to re-create the commits. |
Hi,
While working on a moderately complex IPv6 network setup, I ran into issues with odhcpd's handling of the RA Route Info Option. By default, odhcpd generates a Route Info Option in RAs based on the existence of unreachable routes on the router and this behavior cannot be changed. This pull request implements two new configuration options which make it possible to change odhcpd's behavior somewhat.
The option "ra_unreachable" makes it possible to disable the auto-generated Route Info Option. This is useful, for example, if the router contains multiple unreachable routes or if the route's prefix is different from what should be announced via RA.
The second option "ra_route" makes it possible to manually configure additional routes to be announced in /etc/config/dhcp. This is a per-interface option, different routes can be configured for different interfaces. It's a list option with the following value format:
The preference field is optional (medium by default). Here's an example:
--Jan