Giter VIP home page Giter VIP logo

Comments (6)

sdawans avatar sdawans commented on June 8, 2024

Hi,
Have you read the tutorial on interfacing 6LBR with COOJA?

https://github.com/cetic/6lbr/wiki/COOJA-Interface

In all cases, we don't run any RPL Root in COOJA, the RPL root is either integrated in 6LBR (and 6LBR runs in Linux), or it is external to the 6LBR, somewhere on the Ethernet backbone or Linux bridge.

The tutorial shows the simpler case, where 6LBR is also the root of the RPL network, and we run it in Router mode. Router, in this context, means that the 6LBR seperates two subnets with different prefixes (bbbb::/64 on IPv6 side, and aaaa::/64 on 6LoWPAN side, in the example). The 6LBR connects to a slip-radio mote in COOJA, using a serial socket server in COOJA. Thus, we don't expect you to add 'rpl-udp-server` nodes in addition to a 6LBR.

If you haven't tried yet, the tutorial is a good first step,
If you have any issues in performing the tutorial or still have questions after that, please don't hesitate to ask here. Also, pasting the contents of your .CSC and 6LBR configuration will be helpful for us.

Kind regards,
Sébastien

from 6lbr.

abhishek3004 avatar abhishek3004 commented on June 8, 2024

Thanks Sebastien ,
That tutorial really helped.

But now the problem is how to ping nodes of aaaa network from my linux environment.
These aaaa network nodes are purple nodes of cooja example in the link.

Configuration of my linux box:
root@instant-contiki:~/6lbr/examples/6lbr# ifconfig br0
br0 Link encap:Ethernet HWaddr 00:0c:29:70:98:6a
inet6 addr: bbbb::101/64 Scope:Global
inet6 addr: bbbb::e40d:a903:6734:a7c1/64 Scope:Global
inet6 addr: bbbb::20c:29ff:fe70:986a/64 Scope:Global
inet6 addr: fe80::20c:29ff:fe70:986a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3326 errors:0 dropped:0 overruns:0 frame:0
TX packets:3436 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:339120 (339.1 KB) TX bytes:274258 (274.2 KB)

root@instant-contiki:~/6lbr/examples/6lbr# ping6 aaaa::212:7404:4:404
PING aaaa::212:7404:4:404(aaaa::212:7404:4:404) 56 data bytes
From bbbb::e40d:a903:6734:a7c1 icmp_seq=1 Destination unreachable: Address unreachable
From bbbb::e40d:a903:6734:a7c1 icmp_seq=2 Destination unreachable: Address unreachable
From bbbb::e40d:a903:6734:a7c1 icmp_seq=3 Destination unreachable: Address unreachable

Webserver of 6lbr :
Neighbors

[del] fe80::212:7408:8:808 0:12:74:8:0:8:8:8 STALE
[del] fe80::212:7406:6:606 0:12:74:6:0:6:6:6 STALE
[del] fe80::212:7409:9:909 0:12:74:9:0:9:9:9 STALE
[del] bbbb::e40d:a903:6734:a7c1 0:c:29:ff:ff:70:98:6a DELAY

Routes

[del] aaaa::212:7404:4:404/128 (via fe80::212:7409:9:909) 6214 s
[del] aaaa::212:7408:8:808/128 (via fe80::212:7408:8:808) 6227 s
[del] aaaa::212:7406:6:606/128 (via fe80::212:7406:6:606) 6224 s
[del] aaaa::212:7403:3:303/128 (via fe80::212:7409:9:909) 6214 s
[del] aaaa::212:7407:7:707/128 (via fe80::212:7406:6:606) 6213 s
[del] aaaa::212:740a🅰️a0a/128 (via fe80::212:7409:9:909) 6211 s
[del] aaaa::212:7402:2:202/128 (via fe80::212:7409:9:909) 6211 s
[del] aaaa::212:7405:5:505/128 (via fe80::212:7406:6:606) 6227 s
[del] aaaa::212:7409:9:909/128 (via fe80::212:7409:9:909) 6226 s


Thanks
Abhishek bathla

from 6lbr.

laurentderu avatar laurentderu commented on June 8, 2024

Hi,

I believe the problem is in the routes configuration, 6LBR is properly started and running, but Linux does not known the route for aaaa:: addresses. 6LBR in Router mode sends RA with that route inside but by default Linux ignore them (for security reasons I think)

You should either allow RA processing by using the two following commands :

  sysctl -w net.ipv6.conf.br0.accept_ra=1
  sysctl -w net.ipv6.conf.br0.accept_ra_rt_info_max_plen=64

or manually add the route :

  route -A inet6 add aaaa::/64 gw bbbb::100

I believe that's missing from Cooja mode documentation

from 6lbr.

sdawans avatar sdawans commented on June 8, 2024

yep, I have it documented at a couple places in the wiki but we ought to make a generic section giving info on that.

from 6lbr.

laurentderu avatar laurentderu commented on June 8, 2024

Documentation is now updated

from 6lbr.

tasbih avatar tasbih commented on June 8, 2024

yep .. i can separates that for relay devices or for a nodes of simulator cooja

from 6lbr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.