硬件不会响应对方的ARP请求

我有两个硬件(embedded式设备),我已经设置为通过以太网以TCP / TCP方式进行通信。

networking的拓扑结构如下:

----- | S ||=|== Debug PC (w/ Wireshark) 192.168.10.41 | W ||=|== Hardware 1 TCP Client 192.168.10.42 | I ||=|== Hardware 2 TCP Server 192.168.10.40 | T | | C | | H | ----- 

硬件1尝试向服务器发送数据包Hardware 2时,首先发送一个ARP数据包,获取硬件2的MAC地址:

 No. Time Source Destination Protocol Length Info 157 11772.776136 Microchi_13:c3:6a Broadcast ARP 60 Who has 192.168.10.40? Tell 192.168.10.42 

但是,它没有收到来自服务器的回应,然后在一会儿之后,客户端MAC的服务器ARP:

 No. Time Source Destination Protocol Length Info 158 12183.800839 00:3f:2d:02:1a:35 Broadcast ARP 60 Who has 192.168.10.42? Tell 192.168.10.40 

其中也没有收到客户的回复。 我很困扰。

我知道服务器正确地回复,因为我用C#编写了一个简单的TCP客户端,它可以从debuggingPC连接并发送数据包到服务器。

我不知道为什么我的硬件客户端无法通信。

感谢您的帮助提前。

ARP数据包的详细信息如果需要:

来自客户:

 Ethernet II, Src: Microchi_13:c3:6a (00:04:a3:13:c3:6a), Dst: Broadcast (ff:ff:ff:ff:ff:ff) Destination: Broadcast (ff:ff:ff:ff:ff:ff) Source: Microchi_13:c3:6a (00:04:a3:13:c3:6a) Type: ARP (0x0806) Trailer: 000000000000000000000000000000000000 Address Resolution Protocol (request) Hardware type: Ethernet (1) Protocol type: IP (0x0800) Hardware size: 6 Protocol size: 4 Opcode: request (1) [Is gratuitous: False] Sender MAC address: Microchi_13:c3:6a (00:04:a3:13:c3:6a) Sender IP address: 192.168.10.42 (192.168.10.42) Target MAC address: Broadcast (ff:ff:ff:ff:ff:ff) Target IP address: 192.168.10.40 (192.168.10.40) 

从服务器:

 Frame 158: 60 bytes on wire (480 bits), 60 bytes captured (480 bits) Ethernet II, Src: 00:3f:2d:02:1a:35 (00:3f:2d:02:1a:35), Dst: Broadcast (ff:ff:ff:ff:ff:ff) Destination: Broadcast (ff:ff:ff:ff:ff:ff) Source: 00:3f:2d:02:1a:35 (00:3f:2d:02:1a:35) Type: ARP (0x0806) Trailer: 000000000000000000000000000000000000 Address Resolution Protocol (request) Hardware type: Ethernet (1) Protocol type: IP (0x0800) Hardware size: 6 Protocol size: 4 Opcode: request (1) [Is gratuitous: False] Sender MAC address: 00:3f:2d:02:1a:35 (00:3f:2d:02:1a:35) Sender IP address: 192.168.10.40 (192.168.10.40) Target MAC address: 00:00:00_00:00:00 (00:00:00:00:00:00) Target IP address: 192.168.10.42 (192.168.10.42) 

您的“debuggingPC”交换机端口上不会看到任何ARP回复,因为这些回复将单播发送到目标主机 。 您的交换机正在将单播数据包过滤到您的“debuggingPC”的外部目的地。 如果您还需要监视单播stream量,则可以使用集线器而不是交换机,或者在交换机上启用“监视器”或“镜像端口”function (大多数托pipe交换机具有类似的function)以获取所有stream量外国单播泛滥到“debuggingPC”端口。