如何通過以太網找到直接連接到第一台計算機的第二台計算機的IP地址?

Geoffrey Carr

目錄:

如何通過以太網找到直接連接到第一台計算機的第二台計算機的IP地址?
如何通過以太網找到直接連接到第一台計算機的第二台計算機的IP地址?
Anonim
如果您希望或需要通過以太網電纜將第二台計算機直接連接到主計算機,那麼找到第二台計算機的最簡單方法是什麼?今天的超級用戶問答帖子為沮喪的讀者提供了一些有用的建議。
如果您希望或需要通過以太網電纜將第二台計算機直接連接到主計算機,那麼找到第二台計算機的最簡單方法是什麼?今天的超級用戶問答帖子為沮喪的讀者提供了一些有用的建議。

今天的問答環節由SuperUser提供,這是Stack Exchange的一個細分,Stack Exchange是一個社區驅動的問答網站分組。

照片由Keary O.(Flickr)提供。

問題

超級用戶閱讀器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.

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.

如何通過以太網電纜找到直接連接到第一台計算機的第二台計算機的IP地址?

答案

SuperUser貢獻者grawity有我們的答案:

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).

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

The 169.254 auto-configuration involves sending some ARP probes with the host’s own address (you can see those in 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).

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

有什麼要補充說明嗎?在評論中發聲。想要從其他精通技術的Stack Exchange用戶那裡閱讀更多答案嗎?在這裡查看完整的討論主題。

熱門話題