hcbdd 2022-09-24 14:02 采纳率: 0%
浏览 24

能够ping通而hping不通

能够ping通,而hping不通

环境centos,增添了两张虚拟网卡
能够ping通,能够正常联网,而使用hping工具无论什么域名都ping不通

[root@localhost network-handover]# ping www.baidu.com -I ens33
PING www.a.shifen.com (112.80.248.76) from 192.168.253.128 ens33: 56(84) bytes of data.
64 bytes from 112.80.248.76 (112.80.248.76): icmp_seq=1 ttl=128 time=17.2 ms
64 bytes from 112.80.248.76 (112.80.248.76): icmp_seq=2 ttl=128 time=13.9 ms
64 bytes from 112.80.248.76 (112.80.248.76): icmp_seq=3 ttl=128 time=17.2 ms
64 bytes from 112.80.248.76 (112.80.248.76): icmp_seq=4 ttl=128 time=17.8 ms
64 bytes from 112.80.248.76 (112.80.248.76): icmp_seq=5 ttl=128 time=15.5 ms
64 bytes from 112.80.248.76 (112.80.248.76): icmp_seq=6 ttl=128 time=23.0 ms
64 bytes from 112.80.248.76 (112.80.248.76): icmp_seq=7 ttl=128 time=16.6 ms
^C
--- www.a.shifen.com ping statistics ---
7 packets transmitted, 7 received, 0% packet loss, time 6013ms
rtt min/avg/max/mdev = 13.999/17.374/23.076/2.625 ms
[root@localhost network-handover]# hping www.baidu.com -I ens33
HPING www.baidu.com (ens33 112.80.248.75): NO FLAGS are set, 40 headers + 0 data bytes
^C
--- www.baidu.com hping statistic ---
9 packets transmitted, 0 packets received, 100% packet loss
round-trip min/avg/max = 0.0/0.0/0.0 ms
[root@localhost network-handover]# hping 192.168.128.1 -I ens33
HPING 192.168.128.1 (ens33 192.168.128.1): NO FLAGS are set, 40 headers + 0 data bytes
^C
--- 192.168.128.1 hping statistic ---
15 packets transmitted, 0 packets received, 100% packet loss
round-trip min/avg/max = 0.0/0.0/0.0 ms


  • 写回答

1条回答 默认 最新

  • Buringg 2022-09-24 17:05
    关注

    兄弟,hping默认是发tcp的,不是发icmp,icmp加参数 -1,你去网上搜下hping的详细用法。

    评论

报告相同问题?

问题事件

  • 创建了问题 9月24日

悬赏问题

  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥15 c++头文件不能识别CDialog