如何 ping Windows 中的所有地址是 IPv6 的子网

How can I ping all address is subnet in Windows for IPv6

如何以编程方式通过 Windows 对 IPv6 网络的所有地址执行 ping 操作。

我的地址是fe80::1881:1fc2:a153:71f0%3(首选)。

我已经通过 IPv4 完成了此操作,没有任何问题,但很难理解如何为 IPv6 构建我的 ARP table。

How can I go about programmatically [sic] pinging all address through Windows for an IPv6 network. [sic]

如果您尝试在标准 /64 IPv6 网络上对每个可能的 18,446,744,073,709,551,616 地址执行 ping 操作,每秒 1,000,000 个地址,它将超过 584,542 年。您根本无法尝试 ping IPv6 网络上的每台主机。

...having a hard time understanding how to do this to build my ARP table for IPv6.

IPv6 不使用 ARP。 IPv6 使用 ND。 IPv6 ND 维护了一些表,其中包括 Neighbor Cache 和 Destination Cache。

RFC 4861, Neighbor Discovery for IP version 6 (IPv6),解释了 IPv6 ND 的主机数据结构。

5.1. Conceptual Data Structures

Hosts will need to maintain the following pieces of information for each interface:

Neighbor Cache

  • A set of entries about individual neighbors to which traffic has been sent recently. Entries are keyed on the neighbor's on-link unicast IP address and contain such information as its link-layer address, a flag indicating whether the neighbor is a router or a host (called IsRouter in this document), a pointer to any queued packets waiting for address resolution to complete, etc. A Neighbor Cache entry also contains information used by the Neighbor Unreachability Detection algorithm, including the reachability state, the number of unanswered probes, and the time the next Neighbor Unreachability Detection event is scheduled to take place.

Destination Cache

  • A set of entries about destinations to which traffic has been sent recently. The Destination Cache includes both on-link and off-link destinations and provides a level of indirection into the Neighbor Cache; the Destination Cache maps a destination IP address to the IP address of the next-hop neighbor. This cache is updated with information learned from Redirect messages. Implementations may find it convenient to store additional information not directly related to Neighbor Discovery in Destination Cache entries, such as the Path MTU (PMTU) and round-trip timers maintained by transport protocols.

Prefix List

  • A list of the prefixes that define a set of addresses that are on-link. Prefix List entries are created from information received in Router Advertisements. Each entry has an associated invalidation timer value (extracted from the advertisement) used to expire prefixes when they become invalid. A special "infinity" timer value specifies that a prefix remains valid forever, unless a new (finite) value is received in a subsequent advertisement. The link-local prefix is considered to be on the prefix list with an infinite invalidation timer regardless of whether routers are advertising a prefix for it. Received Router Advertisements SHOULD NOT modify the invalidation timer for the link-local prefix.

Default Router List

  • A list of routers to which packets may be sent. Router list entries point to entries in the Neighbor Cache; the algorithm for selecting a default router favors routers known to be reachable over those whose reachability is suspect. Each entry also has an associated invalidation timer value (extracted from Router Advertisements) used to delete entries that are no longer advertised.