Closed michelesponchiado closed 7 years ago
To anyone interested, here how to get a working ping6 between two BR configured as NDP-ROUTER. I have used the 6LBR mode and named my bridge my6b to avoid messing with an existing bridge in my setup.
first PC routing rules:
sudo ip -6 addr add bbbb::1/64 dev my6b
sudo route -A inet6 add fd00::1/64 gw bbbb::100
sudo route -A inet6 add cccc::1/64 gw bbbb::100
second PC routing rules:
sudo ip -6 addr add cccc::1/64 dev my6b
sudo route -A inet6 add fd00::1/64 gw cccc::100
sudo route -A inet6 add bbbb::1/64 gw cccc::100
on the webserver page on [bbbb::100] / [cccc::100] IP configuration prefix fd00:: , length 64, address autoconfiguration off, manual address fd00::1 (first radio)/fd00::2 (second radio) 6LoPWAN context 0 fd00::
nvm.conf first PC
[network.route]
dest=fd00::2/64
via=fd00::212:4b00:6e3:188/128
[network.route]
dest=cccc::1/64
via=fd00::2
[network.route]
dest=fd00::212:4b00:6e3:188/128
via=fe80::212:4b00:6e3:188
nvm.conf second PC
[network.route]
dest=fd00::212:4b00:6e2:ee0b/128
via=fe80::212:4b00:6e2:ee0b
[network.route]
dest=fd00::1/64
via=fe80::212:4b00:6e2:ee0b
[network.route]
dest=bbbb::1/64
via=fd00::1
6lbr.conf first PC
MODE=NDP-ROUTER DEV_TAP=tap0 DEV_ETH=eth0 DEV_BRIDGE=my6b
BRIDGE=1 CREATE_BRIDGE=6LBR ETH_JOIN_BRIDGE=0
DEV_RADIO=/dev/ttyUSB1
BAUDRATE=115200
LOG_LEVEL=3 LOG_SERVICES=-1
- 6lbr.conf second PC
CREATE_BRIDGE=6LBR
MODE=NDP-ROUTER
DEV_TAP=tap0 DEV_ETH=wlan0 DEV_BRIDGE=my6b
RAW_ETH=0
BRIDGE=1 ETH_JOIN_BRIDGE=0
DEV_RADIO=/dev/ttyUSB1 BAUDRATE=115200
LOG_LEVEL=3 LOG_SERVICES=-1
And finally the ping6 command output from the console of the second PC:
...: ping6 fd00::1
PING fd00::1(fd00::1) 56 data bytes 64 bytes from fd00::1: icmp_seq=1 ttl=63 time=483 ms 64 bytes from fd00::1: icmp_seq=2 ttl=63 time=74.9 ms 64 bytes from fd00::1: icmp_seq=3 ttl=63 time=65.9 ms 64 bytes from fd00::1: icmp_seq=4 ttl=63 time=72.9 ms 64 bytes from fd00::1: icmp_seq=5 ttl=63 time=63.8 ms 64 bytes from fd00::1: icmp_seq=6 ttl=63 time=70.7 ms ^C --- fd00::1 ping statistics --- 6 packets transmitted, 6 received, 0% packet loss, time 5004ms rtt min/avg/max/mdev = 63.865/138.712/483.760/154.357 ms
...:ping6 bbbb::1
PING bbbb::1(bbbb::1) 56 data bytes 64 bytes from bbbb::1: icmp_seq=1 ttl=62 time=72.7 ms 64 bytes from bbbb::1: icmp_seq=2 ttl=62 time=79.2 ms 64 bytes from bbbb::1: icmp_seq=3 ttl=62 time=70.5 ms 64 bytes from bbbb::1: icmp_seq=4 ttl=62 time=76.5 ms 64 bytes from bbbb::1: icmp_seq=5 ttl=62 time=67.3 ms 64 bytes from bbbb::1: icmp_seq=6 ttl=62 time=201 ms 64 bytes from bbbb::1: icmp_seq=7 ttl=62 time=80.2 ms ^C --- bbbb::1 ping statistics --- 7 packets transmitted, 7 received, 0% packet loss, time 6008ms rtt min/avg/max/mdev = 67.371/92.663/201.931/44.816 ms
Hi, I am currently stuck with a problem similar to the one discussed in #153 and a little help would be a real godsend! I am using a couple of SmartRF modules plugged via USB on two different Linux Ubuntu PCs, and I wanted to use the radio modules to give network connectivity between the PCs through 6lowPAN using the traditional IP methods the likes of TCP/UDP etc. The final goal would be to use 6lowPAN to give to an Android hand held unit (HHU) -equipped with a CC2650- seamless network connectivity through an OpenWRT board -also equipped with a CC2650-working as the real border router.
I have configured both the 6lbr daemons as a NDP-ROUTER, here the 6lbr.conf file: on both PCs
I set the WSN/Ethernet addresses to
I added the routing on nvm.conf files: on PC1:
on PC2:
the nvm file is:
and this is the route setting on PC2 (PC1 has mirrored settings):
from the 6lbr.log I see the boot works OK and I can browse the webserver on both PCs
But still, as you can imagine, I am not able to ping6 cccc::100 from PC1/bbbb::100 from PC2! I tried using 6LR mode too with no luck.
Have you any suggestions? Many thanks for your help!