Test Connectivity

Stay organized with collections Save and categorize content based on your preferences.

View source on GitHub

Once you have started OTBR Docker, form a Thread network and test its connectivity to the internet.

Form the Thread Network


On the machine running OTBR Docker:

Open a browser window and navigate to If OTBR Docker is running correctly, the OTBR Web GUI loads.

Select the "Form" menu option and change some of the default credentials. We recommend leaving the default Channel and On-Mesh Prefix values. Whatever you use, make a note of them so you can test a separate Thread node later.

Parameter Sample Value
Network name OTBR4444
PAN ID 0x4444
Network Key 33334444333344443333444433334444
Extended PAN ID 3333333344444444
Passphrase 444444
Channel 15
On-Mesh Prefix fd11:22::

Select FORM to form the Thread network. Check the output in the terminal window running OTBR Docker. You should see otbr-agent log output for the addition of the on-mesh prefix and a SLAAC address:

otbr-agent[224]: [INFO]-CLI-----: execute command: prefix add fd11:22::/64 pasor

This output is required for internet connectivty for the Thread network.

Bring up a second Thread node

With OTBR Docker up and running, add a standalone Thread node to the Thread network and test that it has connectivity to the internet.

If using a physical RCP with OTBR Docker, use a second physical Thread node to test. If using a simulated RCP with OTBR Docker, use a second simulated node to test.

Physical Thread node

Build and flash a standalone Thread node on the supported platform of your choice. This node does not have to be built with any specific build switches.

See Build OpenThread for basic building instructions.

See the Build a Thread network with nRF52840 boards and OpenThread Codelab for detailed instructions on building and flashing the Nordic nRF52840 platform.

  1. After building and flashing, attach the Thread device to the machine running OTBR Docker via USB. Use screen in a new terminal window to access the CLI. For example, if the device is mounted on port /dev/ttyACM1:

    screen /dev/ttyACM1 115200

  2. Press the Enter key to bring up the > OpenThread CLI prompt.

Simulated Thread node

  1. Open a new terminal window on the machine running OTBR Docker.

  2. Start the CLI application to bring up a simulated node:

    cd ~/openthread
    ./build/simulation/examples/apps/cli/ot-cli-ftd 2

  3. Press the Enter key to bring up the > OpenThread CLI prompt.

Join the second node to the Thread network

Using the OpenThread CLI for your physical or simulated Thread node, join the node to the Thread network created by OTBR Docker.

  1. Update the Thread network credentials for the node, using the minimum required values from OTBR Docker:

    dataset networkkey 33334444333344443333444433334444
    dataset commit active

  2. Bring up the Thread interface and start Thread:

    ifconfig up
    thread start

  3. The node should join the OTBR Thread network automatically. Within two minutes its state should be router:


  4. Check the node's IP addresses to ensure it has an IPv6 address with the on-mesh prefix of fd11:22::/64 as specified during Thread network formation:


Ping a public address

You should be able to a ping a public IPv4 address from the standalone Thread node at this point. Since Thread only uses IPv6, to ping a public IPv4 address you must translate it to IPv6 and combine it with the well-known prefix of 64:ff9b::/64 used by Network Address Translation (NAT) in OTBR.

  1. To get a translated IPv4 address, use a website like findipv6.com.

  2. Translate the IPv4 address you wish to test. For example, translated to IPv6 is ::ffff:acd9:a46e.

  3. Using only the last 4 bytes of the resulting IPv6 address, combine it with the well-known prefix of 64:ff9b::/64 to get a new IPv6 address: 64:ff9b::acd9:a46e

  4. Ping this new IPv6 address from the CLI of the standalone Thread node to test it's internet connectivity. Pinging this address is akin to pinging the original IPv4 address:

    ping 64:ff9b::acd9:a46e
    16 bytes from 64:ff9b:0:0:0:0:acd9:a46e: icmp_seq=1 hlim=118 time=45ms

Success! The second Thread node can now communicate with the internet, through OTBR Docker.