Hello to everyone, Hello Eric, so what I was asking is while having already set up the WSN with global IPv6 settings (i.e. routable), what needs to be done in order to relay traffic from the sensor motes to the Internet and vice versa. (of course assuming the host server has internet connection)
I thought it was quite clear; at least for the guys working on CoAP. Apologies if this was not the case! Finally, I managed to figure it out my self: all you need to do is enable ipv6 forwarding at your machine. So, assuming that you have programmed some nodes with CoAPBlip (having set the global network prefix in the Makefile first) and a gateway mote with the PppRrouter (again set up the global prefix) the steps on Ubuntu are: 1) set up the ppp deamon: sudo pppd debug passive noauth nodetach 115200 /dev/ttyUSB0 nocrtscts nocdtrcts lcp-echo-interval 0 noccp noip ipv6 ::23,::24 2) set up the network interface eg: sudo ifconfig ppp0 add 2001:620:xxxx:xxxx::1/64 3) Enable ipv6 forwarding to the hosting server: sudo sysctl net.ipv6.conf.all.forwarding=1 Now the OS takes care of relaying internet traffic from the mote gateway to the ethernet connection. I have used Ubuntu and I've been able to GET sensor data and ping6 the sensors from 60km away! :-) Please also note that this doesn't work on virtual machines; you have to use native installation. Cheers to everyone! Marios -- Constantinos Marios Angelopoulos Phd student Department of Computer Engineering & Informatics University of Patras & CTI On Thu, Jul 12, 2012 at 1:13 AM, Eric Decker <[email protected]> wrote: > > > On Wed, Jul 11, 2012 at 7:15 AM, Constantinos Marios Angelopoulos > <[email protected]> wrote: >> >> Greetings to everyone, >> >> The issue is as follows: I have set-up a WSN that is CoAP, >> IPv6/6LoWPAN enabled with global IP settings. > > > First, you don't exactly give an abundance of context to enable folks to > figure out exactly what you are asking for help with. > > For example what are you running on the gateway host. I assume since you > mention ppp0 and eth0 that you are talking about a gateway host. One that > connects via serial line to a mote acting as the edge router. And what you > need is to get connectivity off the gateway host to other nodes. The > problem is the ipv6 addresses used by default on the WSN are link local and > not routeable. > > You have to figure out how to deal with that. > >> >> My question is how can I >> "connect" the ppp0 interface to the eth0 in order to make the wsn >> directly accessible form the outside Internet "world". > > > you basically need an IPv6 router running on the gateway host. Which is > way beyond the scope of this mailing list. > > I haven't done it yet. But the following might help: > > http://tomicki.net/ipv6.router.php > > http://www.falsyana.com/2011/linux/ipv6-at-home-3/ > > > google for more. > > > So roll up your sleeves, break out your keyboard, and go have some googling > fun and figure this puppy out. > > >> >> Thanks in advance! >> Marios >> _______________________________________________ >> Tinyos-help mailing list >> [email protected] >> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help > > > > > -- > Eric B. Decker > Senior (over 50 :-) Researcher > > _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
