Thursday, April 27, 2017

Running 6lbr on Raspberry Pi with WiFi enable

The following steps show you how to run 6lbr on Raspberry Pi with WiFi enable. I use Wi-Pi WiFi dongle in my test.

1. Run "sudo iwlist wlan0 scan" to scan WiFi AP

2. Edit wpa_supplicant.conf to add your WiFi AP SSID, password, and settings by running "sudo vi /etc/wpa_supplicant/wpa_supplicant.conf"

3. Run "sudo ifdown wlan0" and "sudo ifup wlan0" to restart wlan0.

4. Kill existing wpa_supplicant process by running "sudo kill -9 $(ps -ef | grep wpa | awk '{print $2}')" and run "sudo wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf" to start it again with new settings in wpa_supplicant.conf.

5. Run "sudo dhclient" to get DHCP client IP and run "ifconfig wlan0" to check if you get correct client IP.

6. Restart Raspberry Pi and ssh to it using wlan0 DHCP client IP get in step 5.

7. Edit /etc/6lbr/6lbr.conf to use wlan0 as ETH interface.

8. Start 6lbr and you can test it with wlan0 now.

For details of running 6lbr with CC2531EMK on Raspberry Pi, you can refer to "Setup 6lbr to run 6LowPAN with CC2531 USB dongle on Raspberry Pi 2B."


  1. nice tutorial on how to setup 6lbr with wlan0, i wish if only could you add more detailed instructions about all the routing tables and stuff after these steps...

  2. This comment has been removed by a blog administrator.