我一直面临一个特别异常的网络问题。对于特定测试,我在Windows计算机上设置了A类IP,并尝试分别使用arp-scan和ping。这是我的Windows设置:
arp-scan的输出如下:
arp-scan 10.0.0.1
Interface: eth0, datalink type: EN10MB (Ethernet)
Starting arp-scan 1.8.1 with 1 hosts (http://www.nta-monitor.com/tools/arp-scan/)
10.0.0.1 08:00:27:ec:ae:6d CADMUS COMPUTER SYSTEMS
1 packets received by filter, 0 packets dropped by kernel
Ending arp-scan 1.8.1: 1 hosts scanned in 0.703 seconds (1.42 hosts/sec). 1 responded
ping的输出如下:
ping -c 5 10.0.0.1
PING 10.0.0.1 (10.0.0.1) 56(84) bytes of data.
From 192.168.1.1 icmp_seq=3 Destination Host Unreachable
From 192.168.1.1 icmp_seq=2 Destination Host Unreachable
From 192.168.1.1 icmp_seq=1 Destination Host Unreachable
From 192.168.1.1 icmp_seq=5 Destination Host Unreachable
From 192.168.1.1 icmp_seq=4 Destination Host Unreachable
--- 10.0.0.1 ping statistics ---
5 packets transmitted, 0 received, +5 errors, 100% packet loss, time 4024ms pipe 3
这是route
命令的输出:
route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
link-local * 255.255.0.0 U 1000 0 0 eth0
192.168.0.0 * 255.255.248.0 U 0 0 0 eth0
有没有人遇到过同样的问题?为什么会这样?任何有效的答案表示赞赏。提前感谢。
您应该将直接路由添加到检测到的Windows子网。尝试将这样的路由直接添加到eth0上的地址10.0.0.0/8中:
ip r add 10.0.0.0/8 dev eth0
然后验证内核知道去哪里:
ip r get 10.0.0.1
然后尝试再次ping通。
BTW 08:00:27 MAC的一部分显示有人在计算机上运行VirtualBox或类似的东西。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句