-
Notifications
You must be signed in to change notification settings - Fork 2k
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
examples/gnrc_border_router: static: use router from advertisements by default #19207
examples/gnrc_border_router: static: use router from advertisements by default #19207
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
True.
master:
> nib route
2023-01-27 18:34:47,704 # nib route
2023-01-27 18:34:47,707 # 2001:1438:400c:7720::/64 dev #4
2023-01-27 18:34:47,710 # 2001:1438:400c:7771::/64 dev #5
2023-01-27 18:34:47,713 # default* via fe80::1 dev #4
this:
nib route
2023-01-27 18:37:31,135 # nib route
2023-01-27 18:37:31,137 # 2001:1438:400c:7720::/64 dev #4
2023-01-27 18:37:31,140 # 2001:1438:400c:7771::/64 dev #5
2023-01-27 18:37:31,144 # default via fe80::e5ce:7cba:c468:d8b3 dev #4
Thank you for the quick review! bors merge |
Canceled. |
9d34f54
to
ff52d35
Compare
One more thing: Those 'basic'¹ routers that need static configuration also don't offer RDNSS. Well, infinite lifetime is just what we want for a statically configured DNS server. With this, clients now get DNS without needing to include
I think it still falls under the 'improve static config' umbrella, so I included it here. [1] It's actually mostly 'enterprise' routers that don't offer those features… Home routers tend to do auto-config just fine. |
ok, let me test this quickly |
sorry I struggle with the setup. I need to do |
and what modules do border router and client need? There are |
The client is just any RIOT application ( You can't use the same global prefix that is used for your normal network. So we have Now the router will send all packets for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, gonna try it that way another time.
I ment the LAN prefix ::/64, not the ::56, sorry.
I bridged tap0 and eth0 manually this time somehow.
> ping google.com
ping google.com
12 bytes from 2a00:1450:4001:80b::200e: icmp_seq=0 ttl=119 time=30.164 ms
12 bytes from 2a00:1450:4001:80b::200e: icmp_seq=1 ttl=119 time=28.606 ms
12 bytes from 2a00:1450:4001:80b::200e: icmp_seq=2 ttl=119 time=28.638 ms
It makes sense when a static DNS is there it can be advertised with an RDNSS. Anyway I trust you.
bors merge |
Build succeeded: |
Contribution description
A router that does not support DHCPv6 IA_PD will typically still support sending router advertisements.
Setting
IPV6_DEFAULT_ROUTER
by default prevents the node from getting the router config via RAs, leading to a broken configuration.Setting
IPV6_DEFAULT_ROUTER
should only be needed in special cases where routes are not advertised.Testing procedure
examples/gnrc_border_router
withPREFIX_CONF=static IPV6_ADDR=2001:1438:400c:7720::7771/64 IPV6_PREFIX=2001:1438:400c:7771::/64
:Issues/PRs references