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日

    悬赏问题

    • ¥30 计算机网络子网划分路由模拟操作
    • ¥15 MATLAB的画图问题
    • ¥15 c语言用fopen_s成功打开文件之后闪退
    • ¥20 用C++完成,并且运用数组
    • ¥30 求解电力系统潮流计算结果不收敛问题
    • ¥15 某易易盾点选data解析逆向
    • ¥15 系统崩溃,关于订单的处理
    • ¥15 datax-web连接hive为数据源时发生报错,如何解决?
    • ¥15 plink在进行gwas分析时总读取不到表型
    • ¥20 数据结构与c语言的实践内容