forked from openwrt/odhcpd
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
router: add option to include custom routes in RA
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]>
- Loading branch information
Showing
4 changed files
with
177 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters