Hi developers,
I'm trying to porting Open Thread Broder Router to a POSIX Linux. What I have done is that the otbr-agent can talk to the RCP, otbr-web available to form the Open Thread network. Then I can have the Open Thread end node join the network which formed by my POSIX Linux.
ICMPv6's ping6 packet from the OTBR to the end node also works means the local IPV6 network between OT end node and OTBR established.
Then I setup a WiFi AP on the OTBR, using Android mobile to join the WiFi AP.
By running the service discover App in Android mobile, it will send the mDNS packet through the wlan0 to OTBR to find the available services. The OTBR should forward the mDNS packet to the wpan0. Then wpan0 will send the packet via OpenThread network to the end device.
But per my test by tcpdump, the mDNS packet didn't forward to wpan0. I think my network configuration is something wrong.
Here is my network configuration.
1. wlan0's dhcp based on dnsmasq:
interface=wlan0
dhcp-range=192.168.0.2,192.168.0.20,255.255.255.0,24h
2. Enable radvd for ipv6 RA:
interface wlan0 {
AdvManagedFlag on;
AdvSendAdvert on;
MinRtrAdvInterval 30;
MaxRtrAdvInterval 60;
prefix fd11:33::1/64 {
AdvOnLink on;
AdvAutonomous on;
AdvRouterAddr on;
};
route fd11:22::/64 {
};
};
3. Allow iptables forwarding:
iptables -A FORWARD -i wlan0-o wpan0 -j ACCEPT
iptables -A FORWARD -i wpan0 -o wlan0 -j ACCEPT
After the Open Thread network established, the wpan0 will be assigned as below:
wpan0: flags=4305<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST> mtu 1280
inet6 fe80::d8b9:efaf:4bb1:16d9 prefixlen 64 scopeid 0x20<link>
inet6 fd2a:4971:4b0f:7db7:0:ff:fe00:fc00 prefixlen 64 scopeid 0x0<global>
inet6 fd2a:4971:4b0f:7db7:0:ff:fe00:a000 prefixlen 64 scopeid 0x0<global>
inet6 fd2a:4971:4b0f:7db7:ca55:e9bd:dcaa:351a prefixlen 64 scopeid 0x0<global>
And the CHILD node will have IPv6 address as the rloc:
FD2A:4971:4B0F:7DB7:0:FF:FE00:A002
ping6 can work in the OTBR with the CHILD:
root@host:~# ping6 FD2A:4971:4B0F:7DB7:0:FF:FE00:A002
PING FD2A:4971:4B0F:7DB7:0:FF:FE00:A002 (fd2a:4971:4b0f:7db7:0:ff:fe00:a002): 56 data bytes
64 bytes from fd2a:4971:4b0f:7db7:0:ff:fe00:a002: seq=0 ttl=64 time=52.817 ms
64 bytes from fd2a:4971:4b0f:7db7:0:ff:fe00:a002: seq=1 ttl=64 time=51.245 ms
I think any of the packets from wlan0 won't be able to forward to the wpan0 in my configuration, hopefully can get some clues.
Very appreciates for you!