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

Support adding static router advertisments #74

Open
ntninja opened this issue Mar 20, 2016 · 4 comments · May be fixed by #224
Open

Support adding static router advertisments #74

ntninja opened this issue Mar 20, 2016 · 4 comments · May be fixed by #224

Comments

@ntninja
Copy link

ntninja commented Mar 20, 2016

Basically I want to be able to replace this radvd configuration snippet:

interface br-lan
{
        AdvSendAdvert on;
        AdvManagedFlag off;
        AdvOtherConfigFlag off;

        route fc00::/8
        {
                AdvRoutePreference medium;
        };
};

It statically advertises a route for the fc00::/8 address space on all LAN interfaces, nothing else; no assigning addresses, no extra subnet routes, just handing out that single route. This this possible with odhcpd right now? Is it hard to implement?

@vfreex
Copy link

vfreex commented Mar 21, 2016

+1

@romanrm
Copy link

romanrm commented Sep 6, 2016

Need this too. Was shocked to find that radvd got removed from OpenWRT, while its "replacement" odhcpd doesn't even have this basic feature.

@zhoreeq
Copy link

zhoreeq commented Apr 9, 2020

This is a very important feature. How can this be implemented?

@zhoreeq
Copy link

zhoreeq commented Apr 9, 2020

Meanwhile this package can be used instead https://github.com/ffulm/firmware/tree/master/package/simple-radvd

DavidB137 added a commit to DavidB137/odhcpd that referenced this issue Oct 12, 2024
Introduces new configuration option `ra_addroutes` for adding custom route(s)
in route advertisement (RA) messages when no default route is advertised.

This is useful when, for example, end devices are given only ULA IPv6
addresses (e.g. from fc00:0:100::/48), but one still needs inter subnet
communication to e.g. fc00:0:200::/48. Currently, this wouldn't be possible
without static route on each end device as the odhcpd server doesn't present
itself as default router and no route information is given except for local
ULA subnet (fc00:0:100::/48).

New configuration option `ra_addroutes` makes it possible to advertise
arbitrary routes to the end devices and thus making correct routing possible
even when no default route (or public IPv6 prefix) is available.

Option `ra_addroutes` exists under both `odhcpd` section and interfaces'
sections. Latter sets up interface-specific routes. Routes configured under
`odhcpd` are global and advertised for all interfaces (including those with
interface-specific additional routes).

Config example:

config odhcpd 'odhcpd'
	...
	list ra_addroutes 'fc00:10::/32'
    list ra_addroutes 'fc00:20::/32'

config dhcp 'lan'
	...
	list ra_addroutes 'fd50:60:70::/48'

Fixes: openwrt#74

Signed-off-by: Dávid Benko <[email protected]>
DavidB137 added a commit to DavidB137/odhcpd that referenced this issue Oct 12, 2024
Introduces new configuration option `ra_addroutes` for adding custom route(s)
in route advertisement (RA) messages when no default route is advertised.

This is useful when, for example, end devices are given only ULA IPv6
addresses (e.g. from fc00:0:100::/48), but one still needs inter subnet
communication to e.g. fc00:0:200::/48. Currently, this wouldn't be possible
without static route on each end device as the odhcpd server doesn't present
itself as default router and no route information is given except for local
ULA subnet (fc00:0:100::/48).

New configuration option `ra_addroutes` makes it possible to advertise
arbitrary routes to the end devices and thus making correct routing possible
even when no default route (or public IPv6 prefix) is available.

Option `ra_addroutes` exists under both `odhcpd` section and interfaces'
sections. Latter sets up interface-specific routes. Routes configured under
`odhcpd` are global and advertised for all interfaces (including those with
interface-specific additional routes).

Config example:

config odhcpd 'odhcpd'
	...
	list ra_addroutes 'fc00:10::/32'
	list ra_addroutes 'fc00:20::/32'

config dhcp 'lan'
	...
	list ra_addroutes 'fd50:60:70::/48'

Fixes: openwrt#74

Signed-off-by: Dávid Benko <[email protected]>
@DavidB137 DavidB137 linked a pull request Oct 12, 2024 that will close this issue
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 a pull request may close this issue.

4 participants