[question] Switching with/without ethernet interface connected #11268
Replies: 2 comments 3 replies
-
Border routing is part of what it does. Service discovery will also happen on this interface. If you remove this option, When you have multiple potential infra (backbone) links available, I think you should consider specifying multiple Reference: https://github.com/openthread/ot-br-posix/blob/main/src/utils/infra_link_selector.cpp IIUC the problem you met is that your BR cannot ping a Thread device when your BR is not connected to WiFi or Ethernet? Per you mentioned that it auto selected an address on the Ethernet interface, it may indicate something is wrong in your Linux routing table. It'll be helpful if you provide following information. $ ip -6 route show table all
$ ip -6 rule
$ ip route get <Thread destination>
I think GitHub issues is the suggested place for such discussions. |
Beta Was this translation helpful? Give feedback.
-
Hello, I have reproduced the situation where:
This is the result of the commands and it's very interesting: The ping is failing like this:
As we can see here, the source IPv6 is wrong! It takes the IPv6 of "ethernet" interface (see below) Interfaces:
Some commands:
If I run this command, the ping start to work:
Ping:
And the prefered route has changed:
So at this point, the problem seems to be related to:
Did you know why it takes this route:
Instead of this one:
To access Is there a way to force it using wpan0 in any cases to access thread network ? Note that when we create the thread network, we don't use this command:
In the past we had issues with this command, possibly because we had multiple iot hubs with same prefix (not completely sure). Is it related ? |
Beta Was this translation helpful? Give feedback.
-
Hello,
We have a IOT gateway running on Yocto with ethernet and wifi interface working good since a long time with otbr-agent.
Except one case: When we have no ethernet/wifi connection.
The functional cases are:
Up to now we was starting otbr-agent like this:
But as otbr-agent have troubles when Ethernet AND WiFi interfaces are disconnected, we are thinking about removing the
-B
optionWe are not sure to really understand what is this option for:
We don't know if it's a good idea or not to:
Also we found something strange:
-B
option and we have no ethernet/wifi connection: we can ping a thread device from the IOT Gateway-B
option and we connect an ethernet cable, the ping start to fail because (probably) the IPv6 source address of the ping request is taken from Ethernet interface instead of wpan0,ipaddr on a thread CLI device:
The ping from the computer when ethernet is connected (without
-B
):Logs when otbr-agent is started without
-B
AND ethernet cable is connected:Logs when otbr-agent is started without
-B
AND ethernet cable is disconnected:Also, is there a better place for this kind of questions ? Like a chat or something.
Beta Was this translation helpful? Give feedback.
All reactions