一台路由器连接3个以太网_如何查找通过以太网直接连接到第一台计算机的第二台计算机的IP地址?...

一台路由器连接3个以太网_如何查找通过以太网直接连接到第一台计算机的第二台计算机的IP地址?...

一台路由器连接3个以太网

一台路由器连接3个以太网_如何查找通过以太网直接连接到第一台计算机的第二台计算机的IP地址?...

If you want or need to directly hook up a second computer to your primary one via Ethernet cable, what is the easiest way to find the IP address for the second one? Today’s SuperUser Q&A post provides some helpful advice for a frustrated reader.

如果您希望或需要通过以太网电缆将第二台计算机直接连接到第一台计算机,最简单的方法是找到第二台计算机的IP地址? 今天的“超级用户问答”帖子为沮丧的读者提供了一些有用的建议。

Today’s Question & Answer session comes to us courtesy of SuperUser—a subdivision of Stack Exchange, a community-driven grouping of Q&A web sites.

今天的“问答”环节由SuperUser提供,它是Stack Exchange的一个分支,该社区是由社区驱动的Q&A网站分组。

Photo courtesy of Keary O. (Flickr).

图片由Keary O.(Flickr)提供

问题 (The Question)

SuperUser reader Melebius wants to know how to find the IP address of a second computer directly connected to the first one by an Ethernet cable:

超级用户阅读器Melebius想知道如何查找通过以太网电缆直接连接到第一台计算机的第二台计算机的IP地址:

I have connected my primary computer to another one using a direct Ethernet cable connection. The second computer has no peripherals attached and I want to access it using RDP and SMB. The IP addresses are auto-configured, so it registers something in the range of 169.254.x.x.

我已使用直接以太网电缆连接将主计算机连接到另一台计算机。 第二台计算机没有连接外围设备,我想使用RDP和SMB访问它。 IP地址是自动配置的,因此它会注册169.254.xx范围内的内容

I can wait until Windows recognizes the other computer or scan IP addresses, but both actions take a long and unpredictable amount of time. Is there a faster way to recognize the second computer at the other end of the Ethernet cable connection? I have considered making a broadcast “Ethernet ping” and reverse ARP, but I have been unable to find any instructions for this technique.

我可以等到Windows识别另一台计算机或扫描IP地址,但是这两种操作都需要花费很长时间且无法预测。 有没有更快的方法来识别位于以太网电缆连接另一端的第二台计算机? 我曾考虑过进行广播“以太网ping”和反向ARP,但是我找不到有关此技术的任何说明。

How do you find the IP address of a second computer directly connected to the first one by an Ethernet cable?

您如何找到通过以太网电缆直接连接到第一台计算机的第二台计算机的IP地址?

答案 (The Answer)

SuperUser contributor grawity has the answer for us:

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

A broadcast IP ping might work. Not all systems answer to it, but some do when in 169.254 mode. Try ping 169.254.255.255 (needs -b on Linux), or ping ff02::1 (needs ping6 on Linux).

广播IP ping可能有效。 并非所有系统都对此作出答复,但某些系统在169.254模式下会做出响应。 尝试ping 169.254.255.255 (在Linux上需要-b )或ping ff02 :: 1 (在Linux上需要ping6 )。

Directly sending a name lookup (using nbtstat -a) might work (if it runs Windows and if you know the computer’s name).

直接发送名称查找(使用nbtstat -a )可能有效(如果它运行Windows,并且您知道计算机的名称)。

The 169.254 auto-configuration involves sending some ARP probes with the host’s own address (you can see those in Wireshark).

169.254自动配置涉及使用主机自己的地址发送一些ARP探测(您可以在Wireshark中看到它们)。

“Ethernet ping” exists, but only works at the Ethernet level. It will not tell you anything about the IP (It is sometimes implemented in the NIC itself, but mostly not implemented at all).

存在“以太网ping” ,但仅在以太网级别有效。 它不会告诉您有关IP的任何信息(它有时在NIC本身中实现,但几乎根本没有实现)。

“Reverse ARP” also exists, but is almost never actually implemented either. Its primary use was superseded by BOOTP and later DHCP.

还存在“反向ARP”,但几乎也从未真正实施过。 它的主要用途已被BOOTP和后来的DHCP取代。



Have something to add to the explanation? Sound off in the comments. Want to read more answers from other tech-savvy Stack Exchange users? Check out the full discussion thread here.

有什么补充说明吗? 在评论中听起来不错。 是否想从其他精通Stack Exchange的用户那里获得更多答案? 在此处查看完整的讨论线程

翻译自: https://www.howtogeek.com/235157/how-do-you-find-the-ip-address-of-a-second-computer-directly-connected-to-the-first-one-by-ethernet/

一台路由器连接3个以太网