有奇怪的东西。设置: VirtualBox + CentOs7 + python3.6 + scapy2.4.0
只有4-5主机激活的网络:网关,VirtualBos中的CentOs,运行VirtualBox的PC等。
试图做:
ans, unans = sr(IP(dst='10.10.10.1-100')/ICMP(), iface = 'enp0s3', retry=0, timeout=1)
Begin emission: ...
Received 1822 packets, got 99 answers, remaining 1 packets
ans
Results: TCP:0 UDP:0 ICMP:99 Other:0
unans
Unanswered: TCP:0 UDP:0 ICMP:1 Other:0
是合法的ICMP应答包。 unans - CentOs VM本身没有ICMP答复
所以看起来一切都是活的,而不是4-5的主机,它实际上是活着的。
可能的原因是什么?
发布于 2018-11-19 06:34:34
你想知道可能的原因,但替罪羊没有给你足够的细节。所以使用tcpdump:
$ sudo tcpdump -e -c 200 icmp
在tcpdump运行时发送探测包,以便查看地址和时间细节。您可能会看到许多完全正常的ICMP,例如端口不可及,或网络不可达。Tcpdump将确切地告诉您网络接口上发生了什么。
https://stackoverflow.com/questions/53363410
复制相似问题