Hello, I have had to set up and troubleshoot my border router many times so I am trying to make a script to automate it and of course help me to not miss steps. It seems to work on fresh start and for redoing the network as well. The part I am least confident in is the addition of prefixes which I honestly struggle to understand.
This script is just for the building of the Thread network on the otbr. I am totally doing away with any external joining or commissioning techniques as I consider those too advanced for a beginner. This is just to get *something* functional.
#!/bin/sh
# 2021 04-12
# nordic pca10059 radio co-processor RCP built with this command and flashed with nRF Connect
# make -f examples/Makefile-nrf52840 USB=1 BOOTLOADER=USB DOT_THREAD_VERSION=1.2
#
sudo ot-ctl factoryresetsleep 2
sudo ot-ctl thread stop
sudo ot-ctl ifconfig down
sudo ot-ctl dataset clear
sudo ot-ctl dataset init new
sudo ot-ctl dataset panid 0xaa55
sudo ot-ctl dataset extpanid 11112222deadbeef
sudo ot-ctl dataset networkname net2
sudo ot-ctl dataset channel 17
sudo ot-ctl dataset masterkey 00112233445566778899aabbccddeeff
result=$(/home/pi/ot-br-posix/build/otbr/tools/pskc MARK25 11112222deadbeef net2)
echo $result
sudo ot-ctl dataset pskc $result
sudo ot-ctl dataset commit active
sudo ot-ctl prefix add 2001::/64 paros
route add 64:ff9b::/96 s
route add 64:ff9b::/96 s
or, likely I have misunderstood something and this prefix is supposed to be my local router's 64- bit prefix. Problem is, when I have tried substituting my own router's prefix things get worse instead of better. I hope I am very close to the solution.
Prefixes:fd0c:6d27:86f7:0::/64 paos med 9c002001:0:0:0::/64 paros med 9c00Routes:2600:6c44:597f:cfcd::/64 s med 9c00fd4c:4859:a9c5:0::/64 s med 9c00Services:44970 5d c000 s 9c0044970 01 cd04b000000e10 s 9c00Done
thanks!
The reason I was explicitly setting all of the data is because I could not get the ThreadGroup Android app to work reliably as a Commissioner and then later could not get the otbr web ui commissioner to start. I think the web ui Commission tab is still broken or else I fail to understand how it works. It will be best if I use the command line commissioner and Device's join function to add the Devices.
question: would a person need to install and configure radvd to have other PCs on the LAN reach the Thread network with an assigned prefix? or will radvd conflict with something in otbr.?
this is the netdata I have now after adding two prefixes. I am trying to mimic what Kibra offered which I think is a prefix for the LAN advertised with radvd. My devices currently can ping the public and each other and my local/other PC but I cannot ping the Thread network from the PC and I suppose this is because the prefix is not advertised.the fd0x:6d27:86f7:0::/64 is just a link local that I 'made up' and added with the ot-ctl commands
Prefixes:fd0c:6d27:86f7:0::/64 paos med 9c002001:0:0:0::/64 paros med 9c00Routes:2600:6c44:597f:cfcd::/64 s med 9c00fd4c:4859:a9c5:0::/64 s med 9c00Services:44970 5d c000 s 9c0044970 01 cd04b000000e10 s 9c00Doneby the way, I think it would be really helpful to have a cookbook/recipe book for adding prefixes (and routes?) based on different goals or even just 1 standard example that can communicate with the LAN and the internet via ipv6. In searching for my solution I have found that the question I am asking has come up many times and been answered many times but the knowledge gap for me is too big to bridge even with this information. I think it is a common source of confusion for people new to Thread and who are very likely new to ipv6 and even ip networks in general.