-
1Step 1
Using a LEDE router as the gateway
Requirements:
Gateway has IPv6 Access
USB BLE Dongle or on board
Device with LEDE-project firmware and USB port if no BLE support onboard.
Comfort with command line.
Connect with SSH and run
```
opkg update
opkg install kmod-bluetooth kmod-bluetooth_6lowpan bluez-libs bluez-utils kmod-usb-core kmod-usb-ohci kmod-usb2 radvd
reboot
```
Reconnect
```
modprobe bluetooth_6lowpan
mount -t debugfs none /sys/kernel/debug
echo 35 > /sys/kernel/debug/bluetooth/6lowpan_psmhcitool lescan
```
-
2Step 2
echo "connect 00:11:22:33:44:55 1" > /sys/kernel/debug/bluetooth/6lowpan_control
where 00:11:22:33:44:55 is the MAC address of your UmbrellaMod
-
3Step 3
Distributing routable IPv6 prefix
To configure RADVD create
/etc/radvd.conf
file and paste the following contents:interface bt0 { AdvSendAdvert on; prefix 2001:db8::/64 { AdvOnLink off; AdvAutonomous on; AdvRouterAddr on; }; };
Next, start RADVD daemon:
# Set IPv6 forwarding (must be present). sudo echo 1 > /proc/sys/net/ipv6/conf/all/forwarding # Run radvd daemon. sudo service radvd restart
If successfull then the UmbrellaMod connected to the host will receive a routable
2001:db8
prefix.This can be verified by sending echo request to the full address:
ping6 -I bt0 2001:db8::2aa:bbff:fexx:yyzz
where
aa:bbff:fexx:yyzz
is device Bluetooth address.
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.