Well, following this tutorial
processors.wiki.ti.com/.../Contiki-6LOWPAN-BBB
I've found several errors, and the tutorial is not new at all since all the programs mentioned in it were updated with new versions.
What I mean is that TI should pay more attention to the tutorials they develop and show to the community, thats not proffesional at all.
Some errors I've noticed:
In the 6LBR configuration, there is no reference to the IFUP and IFDOWN parameters that allow 6lbr to run the scripts defined at the bottom of the document, i.e.
The file /etc/6lbr/6lbr.conf should look like this:
#MODE=ROUTER
MODE=SMART-BRIDGE
#MODE=RPL-RELAY
#MODE=FULL-TRANSPARENT-BRIDGE
#MODE=NDP-ROUTER
#MODE=6LR
#MODE=RPL-ROOT
RAW_ETH=0
BRIDGE=0
DEV_BRIDGE=br0
DEV_TAP=tap0
DEV_ETH=eth0
RAW_ETH_FCS=1
DEV_RADIO=/dev/ttyACM0
BAUDRATE=115200
IFUP=/etc/6lbr/ifup.d/60dev
IFDOWN=/etc/6lbr/ifdown.d/60dev
Then at the end of the document where it explains how to define this scripts, there is another error that overwrites the ifup script:
2.This is the script used for tearing everything down. Copy the following and paste it into the SSH console (just right click in the putty window) and hit enter.
cat > /etc/6lbr/ifup.d/60dev <<EOF <- this should be /etc/6lbr/ifdown.d/[name of the script]
#!/bin/bash
. $CETIC_6LBR_CONF
. $1/6lbr-functions
config_default
MODE_6LBR=$2
DEV=$3
OS=`uname`
modprobe -r jool
ip address del 192.168.0.200/24 dev eth0
sysctl -w net.ipv4.conf.all.forwarding=0
sysctl -w net.ipv6.conf.all.forwarding=0
EOF
Another error concerning this scripts is the fact that the IP address you define here should match the IP net defined in this part of the tutorial:
2.Copy the following command and paste it into the SSH console (just right click in the putty window) and hit enter. You might have to modify the IP address and gateway depending on your network setup.
cat > /etc/network/interfaces <<EOF # The loopback network interface auto lo iface lo inet loopback # The primary network interface auto eth0 iface eth0 inet static address 192.168.0.190 <-- this should match your IP subnet netmask 255.255.255.0 <-- probably you dont need changes here gateway 192.168.0.1 <-- same here EOF
This is, if you made changes in the subnet, this changes should be reflected in those scripts, or this won't work at all.
Also, in the part DNS64 -> BIND there is no information at all, just a TODO tag, really? No info several months later?
This is an incomplete tutorial full of errors and should not be followed by anyone.