Changes between Version 8 and Version 9 of node-contiki


Ignore:
Timestamp:
Sep 16, 2010, 12:50:19 PM (14 years ago)
Author:
ikram
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • node-contiki

    v8 v9  
    3737
    3838
     39==== Initial Steps to setup the Bridge =====
     40
     41Open the terminal on Ubuntu.
     42
     43IPv6 forwarding must be enabled before running the bridge sudo nano /etc/sysctl.conf
     44Uncomment the line which contains:
     45
     46net.ipv6.conf.default.forwarding=1
     47
     48Reboot / logout and login back on the system
     49
     50==== Build a bridge =====
     51
     521. Disable the WLAN before building the bridge.
     53
     542. First you will need to program a TelosB/Tmote Sky, or similar node with a IEEE 802.15.4 compliant bridge. The bridge is available in contiki-2.4/tools/sky/uip6-bridge/uip6-bridge-tap.c and you upload the code with the following steps:
     55
     56* $ cd contiki-2.4/tools/sky/uip6-bridge
     57* $ make uip6-bridge-tap.upload
     58
     593. Install radvd in your Ubuntu Linux
     60* $ sudo apt-get install radvd
     61
     624. Create a file /etc/radvd.conf and copy the following lines to that file
     63
     64interface tap0 {
     65     AdvSendAdvert on;
     66     AdvLinkMTU 1280;
     67     AdvCurHopLimit 128;
     68         AdvReachableTime 360000;
     69         MinRtrAdvInterval 10;
     70         MaxRtrAdvInterval 15;
     71         AdvDefaultLifetime 45;
     72                 prefix aaaa::/64
     73     {
     74         AdvOnLink on;
     75         AdvAutonomous on;
     76         AdvPreferredLifetime 4294967295;
     77         AdvValidLifetime 4294967295;
     78     };
     79};
     80
     815. Build a bridge
     82
     83* $ cd contiki-2.4/tools/sky/uip-bridge
     84* $ make connect
     85* $ shift+ctrl+t        (opens a new terminal tap)
     86* $ make bridge
     87
     88Now the bridge node and the Linux should be a router for your IPv6 enabled sensor nodes. Make sure you have some nodes (JCreate, Tmote Sky, Raven LCD, etc) with some IPv6 software and then try to ping some of your nodes with ping6 and see what happens! Notice that you have to add %tap0 after the IPv6 address, in order to use the right interface, e.g.:
     89
     90* $ ping6 fe80::0212:7400:10cf:a5c9%tap0
     91
     92Note: if you run "tcpdump -i tap0" you will see the IP addresses of your nodes when they ask for routers (Router Solicitation).
     93
     946. Enable WLAN
     95
     96=== Setting up the IPv6 GOGO6 Tunnel ===
     97
     98To setup the IPv6 tunnel, there are following steps needs to be performed:
     99
     1001. Create an account on the [http://gogonet.gogo6.com] to access the Greenet6 website. follow the link: [http://gogonet.gogo6.com/page/freenet6-tunnelbrokerdownloadthegogoCLIENT]
     101
     102* To get a static IPv6 address or get a /56 network you need to get an account on the Freenet6 server. Create your account at this page:
     103[http://gogonet.gogo6.com/page/freenet6-registration]. Remember that this username and password can be used in go6.conf file, when we setting the ipv6 tunnel.
     104
     105* Download the gogoCLIENT for your System, In our case we have Ubuntu so download the Client 6.0 Source Code (Linux/Unix/MacOS/BSD). http://gogonet.gogo6.com/page/download-1
     106* Follow the HEX_DC_0005_Gateway6_Client_Guide (PDF) (page-61) contained in the gw6c package for the installation on your ubuntu machine. But for simplicity the steps are as follow.
     107
     1082. Complete the following steps to install the gogoCLIENT from the source code:
     109
     110a. Retrieve the source code (*.tgz or *.zip) and decompress it to a temporary directory.
     111
     112/temp$ tar –xf  gw6c-6_0-RELEASE-src.tar
    39113
    40114
     115b. Compile the gogoCLIENT.
     116
     117/temp/gw6c-6_0_1$ make all
     118
     119c. To install the gogoCLIENT in the /usr/local/gw6c directory with the necessary files, run the following command:
     120
     121/gw6c-6_0_1$ make installdir=/usr/local/gw6c install
     122
     123d. Executing the gogoCLIENT requires the files listed below:
     124
     125The gw6c binary file (gw6c) located in the bin directory
     126A sample gw6c.conf file
     127The template subdirectory containing the operating system scripts
     128
     129e. In order to run the IPv6 tunnel as DNS, setup gw6c.conf file; the setting for the usr/local/gw6c/bin/gw6c.conf
     130
     131Suppose we create an account with username.
     132 
     133username: sensei-oulu
     134password: *******
     135
     136$ sudo nano gw6c.conf
     137
     138Change the following configurations:
     139userid=sensei-oulu
     140passwd=*******
     141server=authenticated.freenet6.net
     142auth_method=any
     143Other configurations: leave as default
     144
     145Whole gw6c.conf file is at the end of this document.
     146
     147
     148
     149
     150
     151
     152
     153
     154
     155
     156
     157