我正在研究无线驱动程序。但我觉得这个问题只是一个普遍的网络问题。我看到第一个ping包的奇怪内容,这是一个arp请求,其中目标IP地址与源IP地址相同。我在这里是个新手。这是正常的吗?可能有什么不对?
我手动将我的无线网卡IP配置为192.168.0.10。并尝试ping 192.168.0.1。在ARP数据包中,我看到的内容如下:
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:21:e8:71:70:f4 (00:21:e8:71:70:f4)
Sender IP address: 192.168.0.10(192.168.0.10)
Target MAC address: 00:00:00:00:00:00 (00:00:00:00:00:00)
Target IP address: 192.168.0.10(192.168.0.10)
这是我的设置的转储。
# ifconfig mlan0
mlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
ssid hwteam
bssid 00:1b:11:4f:42:5f chan 11
address: 00:21:e8:71:70:f4
media: IEEE802.11 autoselect
status: active
# ifconfig mlan0 192.168.0.10 netmask 255.255.255.0
# ifconfig mlan0
mlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
ssid hwteam
bssid 00:1b:11:4f:42:5f chan 11
address: 00:21:e8:71:70:f4
media: IEEE802.11 autoselect
status: active
inet 192.168.0.10 netmask 0xffffff00 broadcast 192.168.0.255
# ping 192.168.0.1
PING 192.168.0.1 (192.168.0.1): 56 data bytes
----192.168.0.1 PING Statistics----
3 packets transmitted, 0 packets received, 100% packet loss
# netstat -rn
Routing tables
Internet:
Destination Gateway Flags Refs Use Mtu Interface
127.0.0.1 127.0.0.1 UH 0 4 33192 lo0
192.168.0/24 link#2 UC 1 0 - mlan0
192.168.0.1 link#2 UHLc 0 3 - mlan0
# arp -a
#