为什么要将ipv4和ipv6公共地址分配给我的家庭网络?

虽然您希望为您的位置分配一个IPv4地址,但您可能会惊讶地发现也分配了一个IPv6地址。为什么这两种类型会同时分配给你呢?今天的超级用户问答帖子回答了一位好奇的读者的问题。...

为什么要将ipv4和ipv6公共地址分配给我的家庭网络?

虽然您希望为您的位置分配一个IPv4地址,但您可能会惊讶地发现也分配了一个IPv6地址。为什么这两种类型会同时分配给你呢?今天的超级用户问答帖子回答了一位好奇的读者的问题。

今天的问答环节是由SuperUser提供的,SuperUser是Stack Exchange的一个分支,是一个由社区驱动的问答网站分组。

图片由哥伦比亚外交部(Flickr)提供。

问题

超级用户读者ajs4想知道为什么他将IPv4和IPv6公共地址分配给他的家庭网络:

For my home network, my public IP address “displays” as IPv4 on some websites, yet as IPv6 on others. I have read this SuperUser thread and understand that it is possible for my Internet service provider to have assigned me one of each type.

  • What is the purpose of assigning one of each type to me?
  • Can disabling IPv6 from within Windows on a local host guarantee that only an IPv4 address is used from that computer? I ask as I have read about security concerns in relation to certain VPN protocols used in combination with IPv6.

为什么要将IPv4和IPv6公共地址分配给同一个家庭网络?

答案

超级用户贡献者Bob为我们提供了答案:

What is the purpose of assigning one of each type to me?

Ideally, we should be moving towards greater IPv6 rollout due to IPv4 exhaustion. However, a lot of servers still do not support IPv6. There are many workarounds, none particularly great, but they generally involve tunneling through an intermediate server that can translate between the two. Your ISP provides you with an IPv4 address for compatibility reas***.

What many ISPs do now is implement CGN, where many people share a single “public” IPv4 address. There are many reas*** why this is a bad thing(1), but it is necessary simply because there are not enough IPv4 addresses to go around. This is why we need IPv6, and probably why your ISP provides it.

Can disabling IPv6 from within Windows on a local host guarantee that only an IPv4 address is used from that computer?

Yes, however, this is generally not a good idea. Alternatively, you can  disable IPv6 at the router level, which is a bit better, but again this is not a great idea. We cannot continue to use IPv4 forever.

I ask as I have read about security concerns in relation to certain VPN protocols used in combination with IPv6.

That is typically due to broken VPN clients and configurati***. It is getting better now, though. If you do not use VPNs, it will not affect you. If you do use one, you should do some research first to see if it supports IPv6 correctly (modern VPNs should by now). One of the biggest issues was with VPN clients ignoring IPv6 entirely, so IPv6 connecti*** bypassed the VPN, but hopefully that has gotten better now that there is more attention focused on the issue (see also: IPv6 security vulnerability pokes holes in VPN providers’ claims).

(1) For example, one of the c***equences of CGN is that home users can no longer reliably host a server. Traditional NAT was bad enough (and again a c***equence of the IPv4 shortage), but with CGN port-forwarding it is also no longer possible. There are techniques for working around it, such as NAT hole-punching, but they require external servers and will not always work depending on the service required. Having a unique IPv6 address works around this limitation.


有什么要补充的解释吗?在评论中发出声音。想从其他精通技术的Stack Exchange用户那里了解更多答案吗?在这里查看完整的讨论主题。

  • 发表于 2021-04-09 23:20
  • 阅读 ( 196 )
  • 分类:互联网

你可能感兴趣的文章

公共ip(public ip)和私有ip(private ip)的区别

公共ip与私有ip 顾名思义,公共IP和私有IP的基本区别在于它们使用的网络。在深入研究这些细节之前,IP地址或Internet协议地址是分配给网络上每个设备的唯一标识符。这使得网络上的每个不同设备都能被唯一地识别。有两类I...

  • 发布于 2020-10-22 21:26
  • 阅读 ( 506 )

如何找到android或iphone的ip地址

... 全局IP地址(或公共IP地址)是internet的其他部分如何看到网络上的任何设备。因为这是特定于网络的,所以无论您是在家使用**、桌面还是其他设备,您的全局IP都是相同的。 ...

  • 发布于 2021-03-22 11:33
  • 阅读 ( 287 )

ip地址是如何工作的?

...是为您准备的。 相关:解释了8种常见的网络实用程序 你为什么要在乎?如果您想解决网络为什么工作不正常,或者为什么某个设备没有按预期的方式连接,了解IP地址的工作方式至关重要。如果你需要设置一些更高级的东西,...

  • 发布于 2021-04-06 18:43
  • 阅读 ( 187 )

什么是ipv6,为什么它很重要?

公共互联网上的IPv4地址越来越少。2011年北电破产时,微软斥资750万美元收购了北电666624个IP地址,相当于每个IP地址8美元。IPv4存在技术问题,IPv6是解决方案。 不幸的是,IPv6的部署被推迟了太久。如果IPv6在几年前就实现了,...

  • 发布于 2021-04-09 02:20
  • 阅读 ( 147 )

你使用ipv6了吗?你应该在乎吗?

...后面。 ipv6具有重要的长期意义 相关报道:什么是IPv6,为什么它很重要? IPv6对于互联网的长期健康非常重要。只有大约37亿个公共IPv4地址。这听起来可能很多,但它甚至不是地球上每个人的一个IP地址。考虑到人们有越来越...

  • 发布于 2021-04-09 03:59
  • 阅读 ( 153 )

不,禁用ipv6可能不会加快您的internet连接

...ernet服务提供商。 禁用ipv6的问题 相关报道:什么是IPv6,为什么它很重要? 禁用IPv6可能会导致问题。如果您的Internet连接和路由器已经迁移到IPv6,您将失去正确使用它的能力。某些家庭网络功能也可能需要IPv6—例如,Windows 7中...

  • 发布于 2021-04-11 07:20
  • 阅读 ( 212 )

22个常见网络术语解释

...接,后者连接到Internet。 ip地址 相关报道:什么是IPv6,为什么它很重要? Internet协议地址或IP地址是与网络上的计算机相对应的数字地址。当一台计算机要连接到另一台计算机时,它会连接到该计算机的IP地址。 ipv4和ipv6 常用的...

  • 发布于 2021-04-11 08:51
  • 阅读 ( 197 )

您家中的所有设备如何以及为什么共享一个ip地址

...它知道应该将该流量传递到您指定的本地IP地址。这就是为什么端口转发对于用作服务器并从本地网络外部接收未请求的入站流量的应用程序是必要的。 两种可能的未来 正如我们上面提到的,我们正在用尽IPv4的IP地址,尽...

  • 发布于 2021-04-11 22:07
  • 阅读 ( 206 )

如何查找本地和外部ip地址

你的设备的IP地址是一个关键的信息,你可能不会想太多。您偶尔会需要它来进行与网络相关的设置(如果您试图在网络上打一个洞来访问NAS箱的内容、运行web服务器或连接到您自己开发的VPN,举几个例子),因此了解如何找到...

  • 发布于 2021-05-12 10:29
  • 阅读 ( 782 )

mac地址(mac address)和ip地址(ip address)的区别

MAC地址和IP地址的主要区别在于MAC地址(媒体访问控制地址)是物理地址,而IP地址(Internet协议地址)是逻辑地址。 计算机网络是连接在一起以共享数据和资源的设备的集合。网络中的设备有一个MAC地址和一个IP地址。MAC地址是...

  • 发布于 2021-06-30 17:20
  • 阅读 ( 617 )
Isrhjb88
Isrhjb88

0 篇文章

相关推荐