wiki:OpenTunneling

Version 11 (modified by thomas, 3 years ago) (diff)

--

Table of Contents

  1. OpenWSN
    1. Motivation
    2. Protocol Stack
    3. Overview
    4. Status
    5. Contributing
    6. Open Source
    7. License
  2. Download
    1. Versions
    2. Release Notes
    3. Contribute!
  3. A Standard World
    1. Product development
    2. Why standards
    3. Major bodies
  4. Protocol Stack
    1. IEEE802.15.4-2006
    1. IEEE802.15.4e
    1. uRES
    1. 6LoWPAN
    1. RPL
    1. TCP
    1. UDP
  5. Error: Page OpenAdr does not exist
    1. HTTP
    1. The Big Picture
  6. Error: Page OpenHardwareSoftware does not exist
    Error: Page OpenToolChains does not exist
    Error: Page OpenImplementation does not exist
    1. Stack Organization
  7. Error: Page OpenSynchronization does not exist
    Error: Page OpenDocReservation does not exist
    1. Output power
  8. Tools
  9. Error: Page OpenVisualizing does not exist
    1. Sniffers
  10. Error: Page OpenSlug does not exist
    1. IPv6 Tunneling
    1. Virtual Interface
    1. IPv6 Router Adv.
  11. Demos
  12. Contact
    1. Core Team
    2. Contributors
    3. Mailing List

IPv6 Tunneling

Goal

source:/docs/ipv6_integration.png

TBC  http://www.ipv6actnow.org/info/statistics/

Testing connectivity in IPv4 world

Tip: use  http://ip4.me/ to check your public IPv4 address.

From the Internet host:

# ping 136.152.171.124 (to itself)
# ping 72.52.104.74 (to the tunnel server)
# ping 128.32.33.137 (to the OpenLbr)

From the OpenLBR

# ping 128.32.33.137 (to itself)
# ping 72.52.104.74 (to the tunnel server)
# ping 136.152.171.124 (to the Internet host, this may fail*)
  • Note that the last command may fail because your standard Windows distribution does not answer ping (ICMPv6 echo request) commands. If you start Wireshark ( http://www.wireshark.org/) on the Internet host, you should see the Echo (ping) requests being sent from 128.32.33.137 but no reply. 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):
# netsh firewall set icmpsetting 8 enable

(remember, do not proceed as long as you don't 100% success on all of the above commands)

Register your tunnel

Tunnel broker is a free service created by Internet enthusiasts wishing to promote the use of IPv6. Their service allows you to set up a tunnel to connect your computer to the IPv6 cloud, through an IPv4 network.

  • create an account in  http://tunnelbroker.net/
  • create a 'regular tunnel' once logged in
  • when asked to enter the Client IPv4 address, enter the IPv4 address of the OpenSlug?, in my case 128.32.33.137.

Setting up the tunnel from the LBR

At the bottom of your tunnel details page, choose "Linux-route2" in the drop-down and click Show Config. Enter the commands into your Slug. In my case, I enter:

# modprobe ipv6
# ip tunnel add opentunnel mode sit remote 72.52.104.74 local 128.32.33.137 ttl 255
# ip link set opentunnel up
# ip addr add 2001:470:1f04:98e::2/64 dev opentunnel
# ip route add ::/0 dev opentunnel
# ip -f inet6 addr

Testing connectivity in IPv6 world

Tip: use  http://ip6.me/ to check your public IPv6 address.

Note that, to force the use of IPv6 when issuing a ping, you use ping6 in Linux and ping -6 in Windows.

From the (Linux based) OpenLBR

# ping6 2001:470:1f04:98e::2 (to itself)
# ping6 2001:470:1f04:98e::1 (to the tunnel server)
# ping6 2607:f140:400:1176:c466:2699:5ef1:d477 (to the Internet host*)
  • This will only work if you forced Windows on the Internet host to issue echo replies. See above.

From the (Windows based) Internet host:

# ping -6 2607:f140:400:1176:c466:2699:5ef1:d477 (to itself)
# ping -6 2001:470:1f04:98e::1 (to the tunnel server)
# ping -6 2001:470:1f04:98e::2 (to the OpenLbr)

If you get 100% success on all of the above commands, please go on to the OpenVirtualInterface page.