为什么我没有收到ARP请求的答案?

时间:2010-01-29 11:21:59

标签: ethernet arp

我正在使用一台嵌入式设备连接本地网络和RJ45,当系统发送ARP请求知道网关的mac地址时,根本没有回答。

如果我清除Windows上的arp表,Windows会询问完全相同的ARP请求并得到答案!

我嗅了一下数据包,请求数据包内部的唯一区别是数据包末端嵌入式设备上的0预告片,目标mac地址是ff:ff:ff:ff:ff:ff其中的窗口一个是00:00:00:00:00:00(维基百科似乎应该说它应该是ffffffffff)

我尝试更改了mac地址,以防我的网关由于arp垃圾邮件而禁止了mac,但它没有改变任何东西。我也尝试使用DHCP IP和静态IP,同样的问题...

Windows数据包:

Frame 1 (42 bytes on wire, 42 bytes captured)
     Frame is marked: False
     Arrival Time: Jan 29, 2010 12:05:49.775534000
     Time delta from previous packet: -77.580549000 seconds
     Time since reference or first frame: 6354.738379000 seconds
     Frame Number: 1
     Packet Length: 42 bytes
     Capture Length: 42 bytes
     Protocols in frame: eth:arp
Ethernet II, Src: 00:1e:8c:b5:d0:00, Dst: ff:ff:ff:ff:ff:ff
     Type: ARP (0x0806)

Address Resolution Protocol (request)
     Hardware type: Ethernet (0x0001)
     Protocol type: IP (0x0800)
     Hardware size: 6
     Protocol size: 4
     Opcode: request (0x0001)
     Sender MAC address: 00:1e:8c:b5:d0:00 (00:1e:8c:b5:d0:00)
     Sender IP address: 192.168.0.14 (192.168.0.14)
     Target MAC address: 00:00:00:00:00:00 (00:00:00:00:00:00)
     Target IP address: 192.168.0.1 (192.168.0.1)

0000:  FF FF FF FF FF FF 00 1E 8C B5 D0 00 08 06 00 01  ................
0010:  08 00 06 04 00 01 00 1E 8C B5 D0 00 C0 A8 00 0E  ................
0020:  00 00 00 00 00 00 C0 A8 00 01                    ..........      

嵌入式设备包:

Frame 1 (60 bytes on wire, 60 bytes captured)
     Frame is marked: False
     Arrival Time: Jan 29, 2010 12:07:04.257748000
     Time delta from previous packet: -3.098335000 seconds
     Time since reference or first frame: 6429.220593000 seconds
     Frame Number: 1
     Packet Length: 60 bytes
     Capture Length: 60 bytes
     Protocols in frame: eth:arp
Ethernet II, Src: 00:04:a3:12:34:05, Dst: ff:ff:ff:ff:ff:ff
     Type: ARP (0x0806)
     Trailer: 000000000000000000000000000000000000
Address Resolution Protocol (request)
     Hardware type: Ethernet (0x0001)
     Protocol type: IP (0x0800)
     Hardware size: 6
     Protocol size: 4
     Opcode: request (0x0001)
     Sender MAC address: 00:04:a3:12:34:05 (00:04:a3:12:34:05)
     Sender IP address: 192.168.0.129 (192.168.0.129)
     Target MAC address: ff:ff:ff:ff:ff:ff (ff:ff:ff:ff:ff:ff)
     Target IP address: 192.168.0.1 (192.168.0.1)

0000:  FF FF FF FF FF FF 00 04 A3 12 34 05 08 06 00 01  ..........4.....
0010:  08 00 06 04 00 01 00 04 A3 12 34 05 C0 A8 00 81  ..........4.....
0020:  FF FF FF FF FF FF C0 A8 00 01 00 00 00 00 00 00  ................
0030:  00 00 00 00 00 00 00 00 00 00 00 00              ............    

1 个答案:

答案 0 :(得分:0)

事实上,这是TX的一个问题,极性被颠倒并导致这些问题。

我颠倒了极性,现在效果很好。