gnrc/ipv6_auto_subnets: allow to join multiple subnets #17547
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Contribution description
Our subnet-setup just got a little more complex 😉
We now have a sensor network tree that sends data to a collector unit. This network is offline most of the time and will be a private network in the
fc00::/8
range.When the collector unit comes in range of a gateway device, it will receive a global prefix (and start uploading the data it collected).
This global prefix is also split up to use in the sensor network tree, so the sensors now also have a global address and can query a remote server for configuration or firmware updates.
The private address for internal data collection remains in use.
Testing procedure
Edit the
Makefile
ofexamples/gnrc_networking_subnets
and add:Run the
setup_taps.sh
script to configure the needed TAP interfaces, then run two nodes:make PORT="tap_a0 tap_b1" all term
andmake PORT="tap_b0 tap_c1" all term
A first prefix will already be assigned by
radvd
:Now we manually add a second prefix (requires #17350) on the downstream interface:
The downstream node will now receive both prefixes and create two subnets on the downstream interface
Issues/PRs references