Skip to content
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

Patches to add flexibility to odhcpd's Route Info Option handling #33

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

janakj
Copy link

@janakj janakj commented Jan 1, 2015

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:

<IPv6/bits [low|medium|high]>

The preference field is optional (medium by default). Here's an example:

list ra_route "fd00::/16 medium"

--Jan

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.
@peterwillcn
Copy link

ping @dedeckeh

@treysis
Copy link

treysis commented Nov 20, 2019

Why has this never been merged? This would implement RFC4191 (https://tools.ietf.org/html/rfc4191) from what I understand.

@marc-h38
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants