Closed bhayanisunny closed 8 years ago
Hello,
If you are using a bridge interface, you should not try to configure any ip address on eth0 as they will be deleted when the interface join the bridge. Also, fe80:: addresses are not routable, so you will not be able to reach the WSN network.
Either allow address auto configuration on your BBB (see https://github.com/cetic/6lbr/wiki/6LBR-Connection) or manually assign a bbbb:: address to the br0 interface :
iface br0 inet6 static address bbbb::xxxx:yyyy netmask 64
Hi,
I am following the below link from TI Wiki to configure the 6lbr as Router using TI CC2531 on BBB: http://processors.wiki.ti.com/index.php/Cc26xx_sw_examples
I am able to run the 6lbr service. But I am not able to see the aaaa or bbbb interfaces.
My network does not support dynamic IPv6 address allocation. So I have modified my /etc/network/interfaces file with the below:
auto lo iface lo inet loopback
iface eth0 inet static address 0.0.0.0
auto br0 iface br0 inet dhcp bridge_ports eth0 bridge_stp off up echo 0 > /sys/devices/virtual/net/br0/bridge/multicast_snooping post-up ip link set br0 address
ip link show eth0 | grep ether | awk '{print $2}'
auto eth0
iface lo0 inet6 loopback
iface eth0 inet6 static pre-up modprobe ipv6 address fe80:0:0:0:0:0:a0a:621a netmask 64 gateway fe80:0:0:0:0:0:a0a:6201
The 6lbr.conf is as below:
This file contains a default configuration for BeagleBone platform using
a Telos SLIP Radio
The full list of parameters and their meaning can be found in 6lbr.conf.example
MODE=ROUTER
Bridge Mode
RAW_ETH=0 BRIDGE=1 CREATE_BRIDGE=0 DEV_ETH=eth0 DEV_BRIDGE=br0 DEV_TAP=tap0
RAW_ETH_FCS=0
DEV_RADIO=/dev/ttyACM0 BAUDRATE=115200
http://lists.cetic.be/pipermail/6lbr-dev/2014-April/000180.html
IFUP=/usr/lib/6lbr/6lbr-ifup IFDOWN=/usr/lib/6lbr/6lbr-ifdown
Enable this line if radio device is not detected
SCAN_DEVICE=/usr/lib/6lbr/bb-scan-usb.sh
LOG_LEVEL=3 #INFO and above only
LOG_LEVEL=5
LIB_6LBR=/usr/lib/6lbr BIN_6LBR=$LIB_6LBR/bin WWW_6LBR=$LIB_6LBR/www
NVM=/etc/6lbr/nvm.dat
IFUP=$LIB_6LBR/6lbr-ifup IFDOWN=$LIB_6LBR/6lbr-ifdown
LOG_6LBR=/var/log LOG_6LBR_OUT=$LOG_6LBR/6lbr.log LOG_6LBR_ERR=$LOG_6LBR/6lbr.err
So can you please let me know if I am missing anything.
Below are the logs from /var/log/6lbr.log
Fri Jul 24 06:05:17 UTC 2015 : Starting 6LBR /usr/lib/6lbr/bin/cetic_6lbr_router -c /etc/6lbr/nvm.dat -s /dev/ttyACM0 -t tap0 -R -B 115200 -U /usr/lib/6lbr/6lbr-ifup -D /usr/lib/6lbr/6lbr-ifdown -w /usr/li b/6lbr/www -L 5 -W /var/log/6lbr.timestamp -P 60 -C /var/log/6lbr.ip -m /usr/l ib/6lbr/plugins Contiki-6lbr-1.3.2-34-g3715b49 started with IPV6, RPL Rime started with address 1.2.3.4.5.6.7.8 MAC CSMA RDC br-rdc NETWORK sicslowpan Log level : 50 Log services : ffffffff 2015-06-24 6:05:17.335975: INFO: ETH: 6LBR watchdog started (interval: 60) 2015-06-24 6:05:17.336885: INFO: 6LBR: Starting 6LBR version 1.3.3 (Contiki-6lbr -1.3.2-34-g3715b49) 2015-06-24 6:05:17.336916: INFO: NVM: Opening nvm file '/etc/6lbr/nvm.dat' 2015-06-24 6:05:17.338260: INFO: NVM: NVM Magic : 2009 2015-06-24 6:05:17.338292: INFO: NVM: NVM Version : 1 2015-06-24 6:05:17.338304: INFO: SCMD: Started br-cmd process 2015-06-24 6:05:17.338316: INFO: NODECFG: No node_config.conf file specified 2015-06-24 6:05:17.338328: INFO: ETH: RAW/TAP init 2015-06-24 6:05:17.339337: INFO: SLIP: SLIP started on /dev/ttyACM0 2015-06-24 6:05:17.382124: INFO: TAP: opened device /dev/tap0 2015-06-24 6:05:17.382374: INFO: TAP: Running 6lbr-ifup script '/usr/lib/6lbr/6l br-ifup' 6lbr-ifup: Attach device eth0 to bridge br0 br0 Link encap:Ethernet HWaddr 54:4a:16:bc:e5:70 inet addr:10.10.99.237 Bcast:10.10.99.255 Mask:255.255.254.0 inet6 addr: fe80::564a:16ff:febc:e570/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:2296 errors:0 dropped:0 overruns:0 frame:0 TX packets:153 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:287546 (280.8 KiB) TX bytes:19175 (18.7 KiB)
tap0 Link encap:Ethernet HWaddr 02:0a:0b:0c:0d:0e UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:500 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
2015-06-24 6:05:17.753177: INFO: BR-RDC: Reset SLIP Radio 2015-06-24 6:05:17.753937: PACKET: SLIP: write: 2 2015-06-24 6:05:17.754440: INFO: BR-RDC: Fetching MAC address 2015-06-24 6:05:17.755145: PACKET: SLIP: write: 2 2015-06-24 6:05:17.755971: PACKET: TAP: read: 110 2015-06-24 6:05:17.757389: PACKET: ETH: read: 110 2015-06-24 6:05:17.758490: PACKET: PF: eth_input: Processing frame 2015-06-24 6:05:17.759918: WARN: PF: No input function set 2015-06-24 6:05:17.760299: PACKET: TAP: read: 92 2015-06-24 6:05:17.760412: PACKET: ETH: read: 92 2015-06-24 6:05:17.760496: PACKET: PF: eth_input: Dropping packet type=0x0800 2015-06-24 6:05:17.794544: PACKET: TAP: read: 64 2015-06-24 6:05:17.795794: PACKET: ETH: read: 64 2015-06-24 6:05:17.796885: PACKET: PF: eth_input: Dropping packet type=0x0806 2015-06-24 6:05:17.805348: PACKET: TAP: read: 92 2015-06-24 6:05:17.806533: PACKET: ETH: read: 92 2015-06-24 6:05:17.807564: PACKET: PF: eth_input: Dropping packet type=0x0800 2015-06-24 6:05:17.850957: PACKET: TAP: read: 92 2015-06-24 6:05:17.852466: PACKET: ETH: read: 92 2015-06-24 6:05:17.853578: PACKET: PF: eth_input: Dropping packet type=0x0800 2015-06-24 6:05:17.938190: PACKET: TAP: read: 80 2015-06-24 6:05:17.939666: PACKET: ETH: read: 80 2015-06-24 6:05:17.940800: PACKET: PF: eth_input: Dropping packet type=0x0800 2015-06-24 6:05:17.941823: PACKET: TAP: read: 100 2015-06-24 6:05:17.942604: PACKET: ETH: read: 100 2015-06-24 6:05:17.942769: PACKET: PF: eth_input: Processing frame 2015-06-24 6:05:17.942874: WARN: PF: No input function set 2015-06-24 6:05:18.29066: PACKET: TAP: read: 92 2015-06-24 6:05:18.30635: PACKET: ETH: read: 92 2015-06-24 6:05:18.31906: PACKET: PF: eth_input: Dropping packet type=0x0800 2015-06-24 6:05:18.344532: PACKET: TAP: read: 92 2015-06-24 6:05:18.346850: PACKET: ETH: read: 92 2015-06-24 6:05:18.348413: PACKET: PF: eth_input: Dropping packet type=0x0800 2015-06-24 6:05:18.349921: PACKET: TAP: read: 216 2015-06-24 6:05:18.350091: PACKET: ETH: read: 216 2015-06-24 6:05:18.350214: PACKET: PF: eth_input: Dropping packet type=0x0800 2015-06-24 6:05:18.350374: PACKET: TAP: read: 216 2015-06-24 6:05:18.350503: PACKET: ETH: read: 216 2015-06-24 6:05:18.350620: PACKET: PF: eth_input: Dropping packet type=0x0800 2015-06-24 6:05:18.370749: PACKET: TAP: read: 64 2015-06-24 6:05:18.373007: PACKET: ETH: read: 64
Thanks, Sunny