Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

 

If you are looking for a way to put your OpenWSN mesh network on the internet, this page would be a perfect choice. After you go through this page, you will be able to ping your mote in mesh network from internet.

We assume you have go through the whole procedures on Kickstart Windows page, if not, please do it first.

Create your IPv6 address on Tunnel broker

Hurricane Electric (HE) provides free tunnel broker service which let you be able to reach the IPv6 Internet by tunneling over existing IPv4 connections from your IPv6 enabled host or router to one of our IPv6 routers. Before using this service,  you need make sure you have an IPv6 capable host or router which also has IPv4 connectivity. 

To get your IPv6 address: 

  • create an account on tunnelbroker
  • login your account and select "Create Regular Tunnel"
  • then you will see a textbox, which let you fill your IPv4 address (see tips below)
  • select an available Tunnel Servers in the list and click "create Tunnel"

then tunnel broker will assign you an ipv6 address and /64 prefix. You will see something like this:


Tip: use http://ip4.me/ to check your public IPv4 address. If you have some warning with red background when you type in your ipv4 address like

IP is not ICMP pingable. Please make sure ICMP is not blocked. If you are blocking ICMP, please allow 66.220.2.74 through your firewall.

This is caused by your standard Windows distribution does not answer ping (ICMPv6 echo request) commands. You can issue the following command to force Windows (Vista in this case) to reply to ping (you need to open a Command Prompt by right clicking and choosing Open as Administrator). See Set Up Tunneling for details.

# netsh firewall set icmpsetting 8 enable

You will see following message with green background if the address is available:

IP is a potential tunnel endpoint.
  • on Tunnel Details page, change to Example configurations tab

  • select your OS and copy and paste the following commands into a command window.

  • then you need enable your routing by issue following command

# netsh interface ipv6 set interface interface=IP6Tunnel forwarding=enabled

Tip: IP6Tunnel is the default tunnel name when you create the tunnel. Change it if you used another name.

  • In the command windows, type in "ipconfig". You should see something like this:

    Tunnel adapter IP6Tunnel:
    	
    	Connection-specific DNS Suffix . : EECS.Berkeley.EDU
    	IPv6 Address . . . . . . . . . . : 2001:470:66:70a::2
    	Link-local IPv6 Address. . . . . : fe80:51ae:8b62:94ab:79f9%16
        Default Gateway. . . . . . . . . : 2001:470:66:70a::1 

Configure your virtual interface 

Oops!

Before you can go on, you need to install a TAP virtual interface:

  • Open a command window and type in following command. Obviously, you need to replace the ipv6 address by what HE assigned you. 
# netsh interface ipv6 add address OpenWSN 2001:470:67:70a::1
# netsh interface ipv6 add route 2001:470:67:70a::/64 OpenWSN fe80::8
# netsh interface ipv6 set interface interface=OpenWSN forwarding=enabled
  • go to your openwsn-sw source code and find openTun.py file
  • open it with your favorite edit tools and find  IPV6PREFIX list
  • change it to your /64 prefix which tunnel broker gives you. In our case it's 2001:470:67:70a
  • save the file and close it.

Ping your mote from Internet

To put your mesh on internet, you need build you mesh network first or run a simulation on your local computer. Then go to http://lg.he.net/ and ping your mote's ipv6 address by typing in the text box. You will see the response messages of your mote in your mesh network. If you are running a simulation the address would be like: 2001:470:67:70a:1415:92cc::2 (node2).

If you can see something like below, congratulations! you have successfully put your mesh network on the internet. 

core1.fmt2.he.net> ping ipv6 2001:470:67:70a:1415:92cc:0:2 numeric count 5
  Sending 5, 16-byte ICMPv6 Echo to 2001:470:67:70a:1415:92cc:0:2
timeout 5000 msec, Hop Limit 64
Reply from 2001:470:67:70a:1415:92cc:0:2: bytes=16 time=100ms Hop Limit=59
Reply from 2001:470:67:70a:1415:92cc:0:2: bytes=16 time=93ms Hop Limit=60
Reply from 2001:470:67:70a:1415:92cc:0:2: bytes=16 time=99ms Hop Limit=60
Reply from 2001:470:67:70a:1415:92cc:0:2: bytes=16 time=78ms Hop Limit=60
Reply from 2001:470:67:70a:1415:92cc:0:2: bytes=16 time=74ms Hop Limit=60
Success rate is 100 percent (5/5), round-trip min/avg/max=74/88/100 ms.

# Entry cached for another 53 seconds.

 



 

 

  • No labels