How to enable IPv6 on Vista & Win7

Windows Vista and Windows 7 both come equipped with dual stack IPv4/IPv6, and it can be enabled on Windows XP/SP2. On a default installation of Vista/Win7, IPv6 should already be operational. In order to fully test your IPv6 readiness, you will also need the services of a Tunnel Broker. A Tunnel Broker is a server that sits on both an IPv6 network and an IPv4 network. IPv6 packets are encapsulated inside an IPv4 packet and sent out over the IPv4 network. The server strips the IPv4 info and sends the packet on to the IPv6 server. Return packets follow the reverse route.

Vista/Win7 come equipped with the Teredo Tunnel, but it is not functional by default. To get all these working, the following services must be running:
IP Helper – Automatic Started
Windows Firewall – Automatic Started
Base Filtering Engine – Manual Started
Don’t ask me why the Firewall has to run, but Microsoft says that the Teredo Tunnel is a security risk. To the best of my knowledge, the Teredo Tunnel is the only one that will work behind a NAT router that does not support IPv6. It uses a technique similar to PPP networks, with a specific UDP port being used to maintain contact.

One of the major differences with IPv6 is that there can be multiple IP addresses. Since there is no longer a Netmask to determine if an address is on the local network, or if it has to be routed through a gateway, they have introduced something called a link-local address. If you go to the command prompt and enter the “ipconfig /all” command, you should see an address beginning with “fe80::” and ending with “%x” under the Local Area Connection. The “%x” is a random ID number assigned to the interface, and will be necessary to use at times (more on that later).

If the system only has a link-local and a Teredo tunnel IP address, the DNS will not return an IPv6 address. To overcome this limitation, we have to fool the system by adding another IPv6 address. If you are fortunate enough to have a router that supports IPv6 DHCP, one will already have been assigned to you. If not, you must manually enter it. Go to the Properties of your LAN or WiFi interface, and change it to have a static IPv6 address. The easiest solution is to use the converted IPv4 address with a netmask of 48. For example, a static IPv4 address of “192.168.1.2” converts to “2002:c0a8:102::” (192 = c0h, 168 = a8h, 1 = 01h, 2 = 02h). Don’t configure a default gateway for this address, because there isn’t one. You will also need to configure IPv6 DNS servers. You can use any that you might have access to. Both OpenDNS and Google offer free public servers:
OpenDNS: 2620:0:ccc::2 & 2620:0:ccd::2
Google: 2001:4860:4860::8888 & 2001:4860:4860::8844
I personally use one of each.

Windows will now resolve IPv6 domain names. The simplest way to test this is to ping your own computer name (find under System in the Control Panel), or another computer name on your local network that supports IPv6. It should resolve the link-local address and complete the ping. For example:
C:\>ping donna2-pc
Pinging Donna2-PC [fe80::8d22:1710:b68c:37d9%9] from fe80::a5bb:d4f:e017:e25c%9 with 32 bytes of data:
Reply from fe80::8d22:1710:b68c:37d9%9: time<1ms
Reply from fe80::8d22:1710:b68c:37d9%9: time<1ms
Reply from fe80::8d22:1710:b68c:37d9%9: time<1ms
Reply from fe80::8d22:1710:b68c:37d9%9: time<1ms
Ping statistics for fe80::8d22:1710:b68c:37d9%9:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
On one machine I had difficulty getting the ping command to use the correct interface. It wanted to use the Teredo link-local address instead of the ethernet adapter link-local address. I solved the problem by disabling the other Microsoft interface via the registry. HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters\DisabledComponents
This key probably won’t exist and must be added as a REG_DWORD. The value is a bit map:
· Bit 0 Set to 1 to disable all IPv6 tunnel interfaces, including ISATAP, 6to4, and Teredo tunnels.
· Bit 1 Set to 1 to disable all 6to4-based interfaces.
· Bit 2 Set to 1 to disable all ISATAP-based interfaces.
· Bit 3 Set to 1 to disable all Teredo-based interfaces.
· Bit 4 Set to 1 to disable IPv6 over all non-tunnel interfaces, including LAN interfaces and *Point-to-Point Protocol (PPP)-based interfaces.
· Bit 5 Set to 1 to modify the default prefix policy table to prefer IPv4 to IPv6 when attempting connections.
To disable the ISATAP interface, I changed the value to 4 (bit 2).

At this point, we need to expose you to a command that has always been there, but wasn’t really used much with IPv4.
C:\>netsh int ipv6 show teredo
Teredo Parameters
———————————————
Type : client
Server Name : teredo.ipv6.microsoft.com.
Client Refresh Interval : 30 seconds
Client Port : unspecified
State : dormant
Client Type : teredo host-specific relay
Network : managed
NAT : none (global connectivity)
“Int” is short for “interface”. If the state shows as “offline”, you may have to force Teredo into accepting your NAT router. This is done using the following command:
C:\>netsh int ipv6 set teredo type=enterpriseclient
Ok.
If Teredo is now functional, then you should be able to find the interface index using the “ipconfig /all” command:
Tunnel adapter Local Area Connection* 6:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Teredo Tunneling Pseudo-Interface
Physical Address. . . . . . . . . : 02-00-54-55-4E-01
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
IPv6 Address. . . . . . . . . . . : 2001:0:4137:9e76:142b:a209:30f9:a279(Preferred)
Link-local IPv6 Address . . . . . : fe80::142b:a209:30f9:a279%8(Preferred)
Default Gateway . . . . . . . . . : ::
NetBIOS over Tcpip. . . . . . . . : Disabled
In the example above, the interface index is %8 for the Teredo interface. We need this number for the next command, since there is no default route to allow traffic to flow to the Internet.
C:\>netsh int ipv6 add route ::/0 interface=8
Ok.
With this last step you should now be able to access IPv6 sites such as:
C:\>ping ipv6.google.com
Pinging ipv6.l.google.com [2001:4860:b006::69] from 2001:0:4137:9e76:249b:92d7:b464:60e9 with 32 bytes of data:
Reply from 2001:4860:b006::69: time=31ms
Reply from 2001:4860:b006::69: time=31ms
Reply from 2001:4860:b006::69: time=31ms
Reply from 2001:4860:b006::69: time=31ms
Ping statistics for 2001:4860:b006::69:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 31ms, Maximum = 31ms, Average = 31ms
It may take more than one attempt to activate the interface. Then try entering http://ipv6.google.com into your browser, and it should bring up Google’s IPv6 page.

Be aware that at this point in time, Windows will always prefer IPv4 over IPv6 if both exist for a given domain. We can change that behaviour by modifying the prefixpolicies table:
C:\>netsh int ipv6 show pre
Querying active state…
Precedence Label Prefix
———- —– ——————————–
50 0 ::1/128
40 1 ::/0
30 2 2002::/16
20 3 ::/96
10 4 ::ffff:0:0/96
5 5 2001::/32
But I will leave that for you to investigate on your own.

关闭Windows7中的6to4/isatap/teredo隧道

经常看到用户抱怨在 Windows 7 操作系统的 cmd 命令提示符窗口下使用 ipconfig /all 时,会看到非常多的称之为“隧道适配器”的本地连接,而大多数用户对于隧道连接的概念并不了解。

在 Windows 7 中,系统自动配置生成了多个隧道连接,这些隧道连接的用处是用于实现 IPv4 与 IPv6 互访问而设计的。IPv6 隧道是将 IPv6 报文封装在 IPv4 报文中,让 IPv6 数据包通过使用 IPv4 地址协议的网络进行通信。对于采用隧道技术的设备来说,在隧道的入口处,将 IPv6 的数据报封装进 IPv4,IPv4 报文的源地址和目的地址分别是隧道入口和隧道出口的 IPv4 地址,而在隧道的出口处,再将 IPv6 报文取出转发到目的节点。隧道技术只要求在隧道的入口和出口处进行报文的封装修改,对其他部分没有要求,容易实现。

在 Windows 7 中,为了更好的实现 IPv4 到 IPv6 的过渡,使用了多种隧道技术。但是,对于基本上一直在使用 IPv4 的用户,多个隧道连接反而带来了一些不便,因此,这里介绍一下如何关闭 Windows 7 中自带的隧道连接。

使用 netsh 命令关闭 IPv6 隧道适配器:

netsh interface teredo set state disable

netsh interface 6to4 set state disabled

netsh interface isatap set state disabled

 

 

当我们需要使用 IPv6 网络时,只需要使用如下命令恢复 IPv6 隧道设置即可:

netsh interface teredo set state default

netsh interface 6to4 set state default

netsh interface isatap set state default

 

 

文章转自:http://marui.blog.51cto.com/1034148/380357

 

Windows7 环境下配置 Teredo 接入 IPv6

按:Teredo 是一种使用公共网关的 IPv4/IPv6 转换机制,它目前只用于直接通过 IP 地址发起连接,因此你的浏览器不会通过域名连接 IPv6,也就是说该网络配置无益于访问 IPv6 网站。如果一定要通过该方案访问 IPv6 网站,请自行于 hosts 文件中添加相关 IPv6 解析记录。

配置的网络环境:中国电信 2M ADSL 路由器拨号上网,Windows 7 64位操作系统。

以下是隧道方式(Teredo)连接 IPv6 的设置方法:

1.首先,如果你以前配置过 IPv6 的话,最好能把那些配置都还原回来。我这个方案不需要安装任何第三方软件,所以如果你安装过什么隧道软件的话,现在就可以卸掉了。如果经过以下配置,还不能配置成功的话,建议重新安装操作系统,用一个干净的系统开始配置。

2.使用管理员权限运行 cmd,打开命令行窗口。

3.根据使用路由器的方式不同,选择运行不同的命令:
netsh int ter set state client (PPPoE直拨上网选用)
netsh int ter set state enterpriseclient(通过路由器上网选用)

4.设置隧道:
netsh int teredo set state client teredo-debian.remlab.net
或者:
netsh int teredo set state enterpriseclient teredo-debian.remlab.net

5.这样就开启了 IPv6 隧道了。Cmd 中运行 ipconfig 看看,有这样的一串以 2001: 开头的 IPv6 地址的话,就说明已经配置成功了。没有的话,重启一下电脑看看。

部分Public Teredo Servers:

  • teredo.remlab.net / teredo-debian.remlab.net (France)
  • teredo.autotrans.consulintel.com (Spain)
  • teredo.ipv6.microsoft.com (USA, Redmond) (default for WindowsXP/2003/Vista/2008 OS)
  • teredo.ngix.ne.kr (South Korea)
  • teredo.managemydedi.com (USA, Chicago)
  • teredo.trex.fi (Finland)

参考资料
Windows 7,中国电信ADSL的环境下配置IPv6
Teredo tunneling

修订历史
2019-01-22:修改了标题,精简了内容,补充了 Teredo 使用提示

How To Fix iOS6 Wi-Fi Error(如何解决iOS6Wi-Fi无法连接的问题)

Many people has reported that after iOS 6 installation the Wi-Fi is disconnecting again and again and giving error and requires to reconnect. When I faced this error I thought there is something wrong on my Wi-Fi but when I checked the visitors on different blogs I found lot of people talking about iOS wifi problem. How To Fix iOS 6 wifi Error Go to Settings => Wi-Fi => Select the Wi-Fi Network you are connected. Scroll down to the bottom of the screen and tap and set : HTTP Proxy Auto

打开设置 =>WiFi =>进入你选择的WiFi的设置 =>滚动屏幕到下方 =>HTTP代理选择自动

Win7常用功能键以及常备知识

一、Windows键 + 空格键“Space”

[作用]:透明化所有窗口,快速查看桌面(并不切换)

[快捷键]:win+空格

[小结]:当你打开了很多程序窗口的时候,这招非常有用,而且桌面还会有华丽的光影效果哦。没用过的赶紧试试先

二、Windows键 + D

[作用]:最小化所有窗口,并切换到桌面,再次按又重新打开刚才的所有窗口

[快捷键]:win+d

[小结]:这个功能在以前的系统里是都有的,只不过win7的显示桌面放到了任务栏的右下角了(就是最右边的那个长方形小条)

三、Windows键 + tab键

[作用]:传说中的3D桌面展示效果

[快捷键]:win+tab

[小结]:记得本区应该有一个帖就是关于这个效果的,不过感觉这招最简单了

四、Windows键 + ctrl键+tab键

[作用]:3D桌面浏览并锁定(可截屏)

[快捷键]:win+ctrl+tab

[小结]:见识了它的效果想留个图,win+tab是办不到di,win7说了 — I can!

五、Windows键 + 数字键

[作用]:针对固定在快速启动栏中的程序,按照数字排序打开相应程序

[快捷键]:win+数字(1-9)

[小结]:吼吼,这个功能爽吧

六、Windows键 + P

[作用]:打开“外接显示”的设置窗口

[快捷键]:win+p

[小结]:办公室一族,对这个功能肯定不会陌生吧。对了,接投影仪快速切换,嘿嘿。

七、Windows键 + X

[作用]:打开“移动中心”设置窗口

[快捷键]:win+x

[小结]:设置窗口里包括显示器亮度控制、音量控制、笔记本电池监控、Mobile手机同步设置、外接显示器管理…等多种功能

八、修复系统默认文件关联

[作用]:修复系统默认文件关联

[快捷键]:无

[小结]:当我们无意中破坏了系统默认的文件关联,这招就派上用场了。win7下可不像winxp那样容易修改文件关联的,不信?试试

[操作方法]:开始->cmd,按如下格式输入 assoc.XXX=XXXfile

XXX代表文件类型,比如修复TXT和BAT的文件关联,命令就是assoc.TXT=TXTfile 和 assoc.BAT=BATfile

九、关闭系统休眠功能

[作用]:关闭系统休眠功能

[快捷键]:无

[小结]: windows7下的休眠功能需要硬件和操作系统的功能支持,目前该功能出现多种问题,建议在正式版出来之前先关闭它,而且还可以为系统盘节省大量磁盘空间(大约4G)。

[操作方法]:开始->cmd,输入powercfg -h off,回车

十、Windows键 + 小键盘方向键

[作用]:快速调整窗口大小

[快捷键]:Win + ↑ ↓ ← →

[小结]:工作学习的时候,如果需要同时看到多个窗口的内容,xp是需要手工自己慢慢调整窗口大小和位置的。win7提供了这个方便快捷的功能(如果是两个窗口,结合← →这两个即可),↑ ↓ 是最大化和最小化当前窗口

十一、不修改权限,修改hosts和service文件

[作用]:修改hosts、service等系统文件

[快捷键]:无

[小结]: win7的用户权限管理比较严格,默认情况下你是无法直接修改hosts和service这样的文件,提示无权限。网上有很多教程,讲解如何获取管理员或文件权限,如果你只是想修改类似这样的文件,不用动那么大的干戈,一个小小的动作就行 *_!

[操作方法]:复制hosts、service文件系统文件夹之外的其他地方,任意编辑器修改-》保存,再paste回去覆盖掉系统同名文件,done.

十二、瘦身右键里的“发送到”

[作用]:让右键更清爽

[快捷键]:无

[小结]: 系统安装完并使用一段时间后,想给某个文件整个快捷方式到桌面的时候,你会发现这个菜单太长了……我们只保留常用的(当然还有删不掉的也得留着,嘿嘿),win7这个设置的存放位置和xp有很大区别,xp是在“C:\Documents and Settings\Administrator\SendTo”下,win7位置有所不同。当然了这些文件夹肯定是默认隐藏的,如果你看不到,别忘了先进文件夹选项显示隐藏文件和文件夹。

[操作方法]:进C:\Users\[你当前登录的用户名]\AppData\Roaming\Microsoft\Windows\SendTo

我只保留了,“桌面快捷方式”一个,其余杀之!

 

十三、运行代码

[作用]:已经无法在打开“开始”时找到“运行”这个程序。

[快捷键]:win+R

[小结]:对于专业的人是必不可少的!