Visitor Map

User Login

This is not the Online School. If you are looking for it, click on the link in the Top Menu. Please Log in:

Setting up a 6to4 Tunnel in Windows 7

In this article we will discuss using 6to4 Tunneling in your Windows machine.  In order to do this, we will use a very popular "Tunnel Broker" Service provided by Hurricane Electric.

6to4 tunnels are a way to create a tunnel between two IPv6 end points (your computer and a web server) across the IPv4 network (your home or business and the Internet). By deault, Windows 7 has a 6to4 tunnel interface available!

The first step in this process just takes a couple of minutes to set up an account at Hurricane Electric.  Go to http://tunnelbroker.net and sign up for an account.  You will be emailed your account credentials - this part has been known to take some time.

While we are waiting, lets examine the Windows configuration. Since most of the steps require us to use the CMD Prompts in Administrator mode, begin by creating a shortcut to the CMD window on your desktop (right click on the desktop, select "New", select "Shortcut", enter "cmd" in the dialogue), then right click on that shortcut, select "Run as Administrator".

  1. Enter "route print" at the command line.  It may scroll off the screen, but look for the "Microsoft 6to4 Adapter" at the top part of the output.  You can see below that mine was #25. routeprintcap
  2. Now, let's check the status of your 6to4 Tunnel.  This is done using the "netsh" command (you can read more about netsh here).  At the command line, enter "netsh".
    netsh_tool
  3. You will be at the netsh prompt as shown.  Now enter "interface ipv6". Note the prompt changes.
    netshintipv6
  4. Now, lets display your ipv6 information.  At this new prompt enter "show interfaces".  Your output may differ, but you should see a couple of interesting things.  Note your matching interface number for the 6to4 Adapter (mine was 25), note the smaller minimum IPv6 MTU of 1280.  Also note the IPv6 loopback interface has a default MTU of 4 gigabytes!
    netshshowint

Everything is good to go.

By now, you should have received an email from Hurrican Electric.  Get your credentials from that email, and log in at the site.

Once logged in, look for the link that says "Create a Regular Tunnel".  The next screen will advise the IPv4 address that you are communicating with.  Input that number into the IPv4 Endpoint (Your side) box.

The Hurricane Electric system is going to ping the IPv4 address you enter.  Make sure the router you will be using allows itself to be pinged from either “the Internet”, or at the least from HE’s server, currently 66.220.2.74.

You should get a positive response from Hurricane Electric, and your tunnel should be ready.

Hurricane Electric provides the next commands for you to enter on their web page. Go to the "Main Page" under the Account Menu at Hurricane Electric:

hurrelectmain

Look at the bottom, your tunnel should be shown.  Click on the tunnel link.  You should now be shown the Tunnel Details.

hurrelecttundet

Now we want to click on the "Example Configurations" Tab. Select your OS, and the system will show you the command line configurations to set up the Tunnel.  I copy and pasted these to my notepad.

hurrelectconfig

Now, if you are behind a NAT, you must edit the 2nd line of the commands and replace the public IP with your Private IP.  Above, I edited 66.25.7.19 to 192.168.1.9. Note: the first command disables a Teredo Interface in case you have it.  If you do not, simply ignore this statement.

Now, since our command line interface is already at the "netsh interface ipv6" prompt, simply remove those words from the begining of each command in your note pad.  You should have something like this with the highlighted address being your private IP:

add v6v4tunnel IP6Tunnel 192.168.1.9 216.218.224.42
add address IP6Tunnel 2001:470:1f0e:d9f::2
add route ::/0 IP6Tunnel 2001:470:1f0e:d9f::1

Now add these commands to the command line.  You should get "Ok" as responses.

Great!  Let's see if the Tunnel is up.

Type "show interface" and your tunnel should show "connected":

6to4connect

The only way to test this is to now attempt to contact an IPv6 server.  First open a second CMD window (does not have to be Run as Administrator).  Try "ping -6 ipv6.google.com".  Two things will happen:

    1. 1st the ipv6.google.com will be resolved by the AAAA IPv6 DNS.  You will see the IPv6 address.
    2. 2nd you should get valid responses from the IPv6 site.
      ipv6ping

Congratulations!  You have successfully built and used an 6to4 Tunnel!

To remove this static route, from the netsh interface ipv6 prompt, enter "delete route ::/0 IP6Tunnel".  You will get an "Ok" response.  If you try your ping again, it will not work.  The tunnel is still there.  To delet the interface enter "delete interface IP6Tunnel" and you are back to where you started.

Also, if you have been playing a little too much and want to reset the ntesh configurations to default, simply type "netsh interface ipv6 reset", and then reboot.

Comments   

 
0 #4 Talha Javaid 2013-03-15 05:15
FIxed It

I deleted all the Microsoft 6to4 interfaces numbering from #1 to #131. I cant find easy way to delete them other then going to Device manager. Any how its now connected. CHEERS.
Quote
 
 
0 #3 Andrew Walding 2013-03-13 09:59
Quoting Talha Javaid:
Dear HE!
I have copied the example configurations my IP6Tunnel says disconencted.
netsh interface ipv6>show interface

Idx Met MTU State Name
--- ---------- ---------- ------------ ---------------------------
1 50 4294967295 connected Loopback Pseudo-Interface 1
13 25 1500 connected Wireless Network Connection
20 50 1280 disconnected Local Area Connection* 14
12 50 1280 disconnected 6TO4 Adapter
11 5 1500 disconnected Local Area Connection
147 50 1280 disconnected IP6Tunnel


What should i do to turn it on


Hi,
Looks like your tunnel failed to set up through the Tunnel Broker. a couple of questions:
1. Did you set up an account at the tunnel broker?
2. Did you get the netsh script from them?
3. What does the script look like? (reply here)
Thanks
Andy
Quote
 
 
0 #2 Talha Javaid 2013-03-13 08:37
Dear HE!
I have copied the example configurations my IP6Tunnel says disconencted.
netsh interface ipv6>show interface

Idx Met MTU State Name
--- ---------- ---------- ------------ --------------- ------------
1 50 4294967295 connected Loopback Pseudo-Interfac e 1
13 25 1500 connected Wireless Network Connection
20 50 1280 disconnected Local Area Connection* 14
12 50 1280 disconnected 6TO4 Adapter
11 5 1500 disconnected Local Area Connection
147 50 1280 disconnected IP6Tunnel


What should i do to turn it on
Quote
 
 
0 #1 Andrew Walding 2013-02-20 07:15
If you are using a MAC, and you want to try 6to4 Tunnels using the similar process from Hurricane Electric look at articles http://ipv6int.net/systems/mac_os_x-ipv6.html and http://willscorner.net/?p=63
Quote
 

Add comment


Security code
Refresh

Copyright © 2013 CellStream Intranet. All Rights Reserved.
Joomla! is Free Software released under the GNU General Public License.