-
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 not routing between 6lo clients and Internet #14676
Comments
Can you reproduce this with |
|
Will try.
border router
node
|
That's odd... why is the same prefix routed to two interfaces? |
hmm might have set it up wrong?
I suppose I need to carve out a different prefix from the /60 for |
Yeah, I was just about to ask for the routes set on the ethernet interface. ip -6 route show dev enx0e504ad43426 There seems to be a 64 subnet configured for that, while the border router routes a 61 bit subnet. |
Hm so when I use
ip -6 route show dev enx0e504ad43426
|
No it should be a smaller subnet, so either |
Shouldn't the |
With
and still no routing from clients |
Let's get back a few steps and understand the problem. You have basically 3 sub nets here here
and they have the following hierarchy LAN > H6LBR > WPAN. I.e. the prefix of the outer sub-net needs to be contained in every inner sub-net. The LAN provides you with a 60-bit prefix A and you want at most a 64-bit prefix for the WPAN, so the H6LBR needs to be configured as such, that it has a prefix length in-between. This means for your desired setup to work your host
This should result in
If you apply this configuration do you get that result and is it then still not working? |
Thank you for the heads-up!
Together with
and
So I'm using
in RIOT. (if you know a better way to set this up let me know. I initially thought |
But that is a different issue, isn't it? The original text was about forwarding the messages of host nodes (not clients, we are not on the application layer) within the WPAN, if I read it correctly, right? Not about the border router being unable to reach global addresses. |
I will try this myself btw if I find the time :-) |
I'm afraid it might as well be an issue with my setup. |
Still worth checking out IMHO. Since you are unsure yourself, however, I "degrade" the issue from a bug report to a question :-). |
Hello There is a guide to configure the border-router for openmote-b, subGHz. best regards |
@edgaralb If you use UHCP (which is the default) only one interface will be provided with a prefix, so if you only want to use Sub-GHz you can add
to the If you want to use both interfaces, you'll have to switch to DHCPv6 instead. For this, simpl add |
An additional question: In the latest RIOT release, there are only two modulation MR-O-QPSK and MR-OFDM, to use MR-FSK which library or when it will be added to the release |
I have it in a branch, I should just PR it already 😳 Mind you that there is still no notion of 'FSK modes', you can just set any combination of options that the chip supports. Another layer that verifies the configuration is valid according to the 802.15.4 spec / complies with local regulations is still needed. |
Thank benpicco, |
Thank you @benpicco . Your previous comments on the at86rf215 driver work great in openmote-b. I'm going to test the MR-FSK integration. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you want me to ignore this issue, please mark it with the "State: don't stale" label. Thank you for your contributions. |
Description
I have seen a similar issue on esp* as border router with a direct WiFi up-link, but sniffing WiFi packets is a bit of a pain, so I tried to reproduce this using Ethernet (CDC-ECM).
The issue I see is that the border router can reach hosts outside the WPAN while it's clients cant.
There is some non-determinism involved as sometimes this works, but often it does not.
Steps to reproduce the issue
This requires an upstream Router with DHCPv6 Prefix Delegation enabled. On the common Fritz!Box, this can be enabled in Network -> Network Settings -> IPv6 Addresses:
In the following, we will request a prefix for delegation from the upstream router, then delegate that prefix to the border router so it can be distributed to the 6LoWPAN clients.
But first, let's flash the border router:
(This requres a second micro USB cabled plugged to the
TARGET USB
port of thesamr21-xpro
)We should now have a usb network interface,
udev
gives it a unique name based on the USB topology.ifconfig output
I used
wide-dhcpv6-client
as this will automatically configure the interface.dhcp6c.conf
sudo dhcp6c -c dhcp6c.conf -D -f eno1
output
So we got the prefix
2001:16b8:45ca:b6c0::/60
.We should also start
radvd
on the interface. We can use the::/64
prefix to automatically select a prefix from the/60
we got:ifconfig afterwards
Our border router should now have configured an address on it's upstream interface via router advertisements.
ifconfig RIOT
To get a prefix on the downstream interface, we have to enable the DHCPv6 server
new ifconfig
Expected results
6LoWPAN clients got a global address and can reach other global addresses.
Actual results
Clients get a global address, but packets are not routed
Instead a neighbor solicitation for the global address is performed.
Packet Capture
Versions
The text was updated successfully, but these errors were encountered: