doc/examples: remove unnecessary route for IPv6 on-link gateways #312
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.
Description
Hi,
When the on-link flag is enabled, the additional route has no effect. This extra route is only required when the on-link flag is not set.
Indeed, for netorkd, when "on-link" is true, the resulting systemd-networkd config file contains "GatewayOnLink=true", which translates to "flags: onlink" in its logs. The resulting route appears with this "onlink" flag in the output of "ip route".
Similarly, for NetworkManager, "route1_options=onlink=true" gets added by
netplan/src/nm.c
Lines 228 to 230 in e5ff9f6
Checklist
make check
successfully → except fortest_with_empty_config
which also fails on themain
branch on my Ubuntu 22.10 test server, so I'm assuming this is entirely unrelated.make check-coverage
).