首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >为什么teredo IP地址不断变化?

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

Server Fault用户
提问于 2016-05-30 20:06:56
回答 1查看 1.1K关注 0票数 0

我设法在windows 7上配置了teredo,但我想出了一个问题.teredo IP地址不断变化。我注意到terendo stat也保持着变化,它从休眠状态转移到启用状态,vica相反。

当我运行(ipconfig /all)时,它会给出:

代码语言:javascript
复制
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
I-E 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

如果我过了一段时间再运行它,它会给我:

代码语言:javascript
复制
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
I-E 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发生了变化。为什么会这样?以及如何解决这个问题?(我在纳特后面,如果这有什么区别的话)

谢谢

更新:

我相信我的ip地址和端口号没有变化,改变的是地球的状态.我注意到teredo接口ip号没有直接改变,但它的状态移动到禁用(或离线或其他状态),然后用新的IP地址重新启动.这是默认行为还是出了问题(在RFC中没有提到)

这是ipconfig /all命令输出,它显示IP更改前teredo的状态:

代码语言:javascript
复制
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
I-E 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
EN

回答 1

Server Fault用户

回答已采纳

发布于 2016-05-30 20:58:27

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

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

例如,在第一个案例中,您的Teredo地址编码了一个Teredo服务器IPv4地址65.55.158.116和UDP端口59132。在第二个案例中,IPv4地址相同,但UDP端口是60204。所以,我们可以说,你的隧道断开和重新连接至少一次。

Teredo还编码本地机器的IPv4 RFC1918地址,在您的示例中是192.168.8.102。

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

此外,在每个地址上设置随机地址标志,导致IP地址在每个Teredo服务器/UDP端口组合中有4,096个可能的值。这提供了抵抗IPv6地址扫描的度量,否则对Teredo连接来说就微不足道了。

Teredo在RFC 5991、3.1节中的随机标志和第4节中的安全考虑中都有充分的解释。

票数 4
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/779880

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档