为什么teredo IP地址不断变化?

我设法在Windows 7configurationteredo,但我想出了一个问题… teredo IP地址不断变化。 我注意到terendo stat也保持着变化,从静止状态变为启用状态,反之亦然

当我运行(IPCONFIG /全部)它给我:

Windows IP Configuration Host Name . . . . . . . . . . . . : mahmoud-PC Primary Dns Suffix . . . . . . . : Node Type . . . . . . . . . . . . : Hybrid IP Routing Enabled. . . . . . . . : No WINS Proxy Enabled. . . . . . . . : No Wireless LAN adapter Wireless Network Connection: Connection-specific DNS Suffix . : Description . . . . . . . . . . . : Realtek RTL8723AE Wireless LAN 802.11n PC IE NIC Physical Address. . . . . . . . . : 20-16-D8-E0-25-2A DHCP Enabled. . . . . . . . . . . : Yes Autoconfiguration Enabled . . . . : Yes Link-local IPv6 Address . . . . . : fe80::bc13:29c3:a8c3:c74a%14(Preferred) IPv4 Address. . . . . . . . . . . : 192.168.8.102(Preferred) Subnet Mask . . . . . . . . . . . : 255.255.255.0 Lease Obtained. . . . . . . . . . : 30 أيار, 2016 07:16:29 م Lease Expires . . . . . . . . . . : 31 أيار, 2016 07:16:29 م Default Gateway . . . . . . . . . : 192.168.8.1 DHCP Server . . . . . . . . . . . : 192.168.8.1 DHCPv6 IAID . . . . . . . . . . . : 371201752 DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-1D-CA-DC-A6-58-2C-80-13-92-63 DNS Servers . . . . . . . . . . . : 192.168.8.1 192.168.8.1 NetBIOS over Tcpip. . . . . . . . : Enabled Tunnel adapter isatap.{5B08C959-60F6-48C1-BD72-E0E7F1323658}: Media State . . . . . . . . . . . : Media disconnected Connection-specific DNS Suffix . : Description . . . . . . . . . . . : Microsoft ISATAP Adapter Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0 DHCP Enabled. . . . . . . . . . . : No Autoconfiguration Enabled . . . . : Yes Tunnel adapter Teredo Tunneling Pseudo-Interface: Connection-specific DNS Suffix . : Description . . . . . . . . . . . : Teredo Tunneling Pseudo-Interface Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0 DHCP Enabled. . . . . . . . . . . : No Autoconfiguration Enabled . . . . : Yes IPv6 Address. . . . . . . . . . . : 2001:0:4137:9e74:1c26:1903:3f57:f799(Pref erred) Link-local IPv6 Address . . . . . : fe80::1c26:1903:3f57:f799%15(Preferred) Default Gateway . . . . . . . . . : :: NetBIOS over Tcpip. . . . . . . . : Disabled 

如果我在一段时间后再次运行它,给我:

 Windows IP Configuration Host Name . . . . . . . . . . . . : mahmoud-PC Primary Dns Suffix . . . . . . . : Node Type . . . . . . . . . . . . : Hybrid IP Routing Enabled. . . . . . . . : No WINS Proxy Enabled. . . . . . . . : No Wireless LAN adapter Wireless Network Connection: Connection-specific DNS Suffix . : Description . . . . . . . . . . . : Realtek RTL8723AE Wireless LAN 802.11n PC IE NIC Physical Address. . . . . . . . . : 20-16-D8-E0-25-2A DHCP Enabled. . . . . . . . . . . : Yes Autoconfiguration Enabled . . . . : Yes Link-local IPv6 Address . . . . . : fe80::bc13:29c3:a8c3:c74a%14(Preferred) IPv4 Address. . . . . . . . . . . : 192.168.8.102(Preferred) Subnet Mask . . . . . . . . . . . : 255.255.255.0 Lease Obtained. . . . . . . . . . : 30 أيار, 2016 07:16:29 م Lease Expires . . . . . . . . . . : 31 أيار, 2016 07:16:29 م Default Gateway . . . . . . . . . : 192.168.8.1 DHCP Server . . . . . . . . . . . : 192.168.8.1 DHCPv6 IAID . . . . . . . . . . . : 371201752 DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-1D-CA-DC-A6-58-2C-80-13-92-63 DNS Servers . . . . . . . . . . . : 192.168.8.1 192.168.8.1 NetBIOS over Tcpip. . . . . . . . : Enabled Tunnel adapter isatap.{5B08C959-60F6-48C1-BD72-E0E7F1323658}: Media State . . . . . . . . . . . : Media disconnected Connection-specific DNS Suffix . : Description . . . . . . . . . . . : Microsoft ISATAP Adapter Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0 DHCP Enabled. . . . . . . . . . . : No Autoconfiguration Enabled . . . . : Yes Tunnel adapter Teredo Tunneling Pseudo-Interface: Connection-specific DNS Suffix . : Description . . . . . . . . . . . : Teredo Tunneling Pseudo-Interface Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0 DHCP Enabled. . . . . . . . . . . : No Autoconfiguration Enabled . . . . : Yes IPv6 Address. . . . . . . . . . . : 2001:0:4137:9e74:10f6:14d3:3f57:f799(Pref erred) Link-local IPv6 Address . . . . . : fe80::10f6:14d3:3f57:f799%15(Preferred) Default Gateway . . . . . . . . . : :: NetBIOS over Tcpip. . . . . . . . : Disabled 

请注意,teredo接口的ip版本6已更改。 为什么会这样呢? 以及如何解决这个问题? (如果这有什么区别,我在NAT后面)

谢谢

更新:

我相信我的IP地址和端口号没有改变,改变的东西是teredo的状态…我注意到,teredo接口的IP号码不直接改变,但它的状态移动到禁用(或离线或任何状态),然后它重新启动新的IP地址…这是默认的行为或错误的东西(在RFC中没有提到这一点)

这是IPCONFIG / ALL命令输出,显示IP被更改之前的teredo的状态:

 Windows IP Configuration Host Name . . . . . . . . . . . . : mahmoud-PC Primary Dns Suffix . . . . . . . : Node Type . . . . . . . . . . . . : Hybrid IP Routing Enabled. . . . . . . . : No WINS Proxy Enabled. . . . . . . . : No Wireless LAN adapter Wireless Network Connection: Connection-specific DNS Suffix . : Description . . . . . . . . . . . : Realtek RTL8723AE Wireless LAN 802.11n PC IE NIC Physical Address. . . . . . . . . : 20-16-D8-E0-25-2A DHCP Enabled. . . . . . . . . . . : Yes Autoconfiguration Enabled . . . . : Yes Link-local IPv6 Address . . . . . : fe80::bc13:29c3:a8c3:c74a%14(Preferred) IPv4 Address. . . . . . . . . . . : 192.168.8.100(Preferred) Subnet Mask . . . . . . . . . . . : 255.255.255.0 Lease Obtained. . . . . . . . . . : 31 أيار, 2016 08:16:34 م Lease Expires . . . . . . . . . . : 01 حزيران, 2016 08:19:06 م Default Gateway . . . . . . . . . : 192.168.8.1 DHCP Server . . . . . . . . . . . : 192.168.8.1 DHCPv6 IAID . . . . . . . . . . . : 371201752 DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-1D-CA-DC-A6-58-2C-80-13-92-63 DNS Servers . . . . . . . . . . . : 192.168.8.1 192.168.8.1 NetBIOS over Tcpip. . . . . . . . : Enabled Tunnel adapter isatap.{5B08C959-60F6-48C1-BD72-E0E7F1323658}: Media State . . . . . . . . . . . : Media disconnected Connection-specific DNS Suffix . : Description . . . . . . . . . . . : Microsoft ISATAP Adapter Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0 DHCP Enabled. . . . . . . . . . . : No Autoconfiguration Enabled . . . . : Yes Tunnel adapter Teredo Tunneling Pseudo-Interface: Media State . . . . . . . . . . . : Media disconnected Connection-specific DNS Suffix . : Description . . . . . . . . . . . : Microsoft Teredo Tunneling Adapter Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0 DHCP Enabled. . . . . . . . . . . : No Autoconfiguration Enabled . . . . : Yes 

Teredo是一种将IPv6stream量通过IPv4上的UDP隧道传输到Teredo服务器的协议,Teredo服务器随后将IPv6stream量路由到Internet,或者返回给您。

您接收到的Teredo IPv6地址将编码Teredo服务器的IPv4地址和您的特定隧道连接的UDP端口。 如果隧道断开并重新连接,这些可能会改变。

例如, 在第一种情况下 ,您的Teredo地址对Teredo服务器的IPv4地址65.55.158.116和UDP端口59132进行编码。第二种情况下 ,IPv4地址是相同的,但UDP端口是60204.所以,我们可以看出您的隧道断开连接并至less重新连接一次。

Teredo也编码本地机器的IPv4 RFC1918地址,在你的情况下是192.168.8.102。

所有这些都是Teredo协议通过NAT正确路由数据包所必需的。

此外,随机地址标志设置在每个地址上,导致每个Teredo服务器/ UDP端口组合的IP地址具有4,096个可能值中的任何一个。 这提供了对IPv6地址扫描的阻力度量,否则对于Teredo连接而言这将是微不足道的。

Teredo在RFC 5991中有详细说明,3.1节中的随机标志以及第4节中的安全考虑。