加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

c# – 解释System.Net.IPAddress的实例属性

发布时间:2020-12-15 03:53:10 所属栏目:百科 来源:网络整理
导读:我在理解 System.Net.IPAddress class时遇到了一些麻烦,因为我不知道在哪里寻找一些属性所指的定义.具体来说,是什么: IPAddress.IsIPv6LinkLocal IPAddress.IsIPv6Multicast IPAddress.IsIPv6SiteLocal IPAddress.IsIPv6Teredo 我也很乐意接受一个解释这些
我在理解 System.Net.IPAddress class时遇到了一些麻烦,因为我不知道在哪里寻找一些属性所指的定义.具体来说,是什么:
IPAddress.IsIPv6LinkLocal
 IPAddress.IsIPv6Multicast
 IPAddress.IsIPv6SiteLocal
 IPAddress.IsIPv6Teredo

我也很乐意接受一个解释这些概念的资源的答案. MSDN网站证明不足.

解决方法

IPAddress.IsIPv6LinkLocal

A link-local address is an IP address
that is intended only for
communications within the local
subnetwork. Routers do not forward
packets with link-local addresses.

IPAddress.IsIPv6Multicast

A multicast address is a logical
identifier for a group of hosts in a
computer network,that are available
to process datagrams or frames
intended to be multicast for a
designated network service. Multicast
addressing can be used in the Link
Layer (Layer 2 in the OSI model),such
as Ethernet multicast,and at the
Internet Layer (Layer 3 for OSI) for
Internet Protocol Version 4 (IPv4) or
Version 6 (IPv6) multicast.

IPAddress.IsIPv6SiteLocal

A unique local address (ULA) is an
IPv6 address in the block fc00::/7,
defined in RFC 4193. It is the IPv6
counterpart of the IPv4 private
address. Unique local addresses are
available for use in private networks,
e.g. inside a single site or
organisation,or spanning a limited
number of sites or organisations. They
are not routable in the global IPv6
Internet.

IPAddress.IsIPv6Teredo

In computer networking,Teredo is a transition technology that gives full IPv6 connectivity for IPv6-capable hosts which are on the IPv4 Internet but which have no direct native connection to an IPv6 network. Compared to other similar protocols its distinguishing feature is that it is able to perform its function even from behind network address translation (NAT) devices such as home routers.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读