ping inetutils工具较旧无法指定源 ip

dpkg -l | grep inetutils

ii inetutils-ping 2:2.4-2+deb12u1 amd64 ICMP echo tool

ping (GNU inetutils) 2.4

目前在 kube-ovn kind 环境 node 模拟节点存在该问题

解决

bash 复制代码
apt remove inetutils-ping
apt install iputils-ping

问题详情

bash 复制代码
root@kube-ovn-worker:/# ping -V
ping (GNU inetutils) 2.4
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Sergey Poznyakoff.
bash 复制代码
root@kube-ovn-worker:/# ping -I 172.18.0.3 10.11.0.2
ping: invalid option -- 'I'
Try 'ping --help' or 'ping --usage' for more information.
root@kube-ovn-worker:/# ping --help
Usage: ping [OPTION...] HOST ...
Send ICMP ECHO_REQUEST packets to network hosts.

 Options controlling ICMP request types:
      --address              send ICMP_ADDRESS packets (root only)
      --echo                 send ICMP_ECHO packets (default)
      --mask                 same as --address
      --timestamp            send ICMP_TIMESTAMP packets
  -t, --type=TYPE            send TYPE packets

 Options valid for all request types:

  -c, --count=NUMBER         stop after sending NUMBER packets
  -d, --debug                set the SO_DEBUG option
  -i, --interval=NUMBER      wait NUMBER seconds between sending each packet
  -n, --numeric              do not resolve host addresses
  -r, --ignore-routing       send directly to a host on an attached network
      --ttl=N                specify N as time-to-live
  -T, --tos=NUM              set type of service (TOS) to NUM
  -v, --verbose              verbose output
  -w, --timeout=N            stop after N seconds
  -W, --linger=N             number of seconds to wait for response

 Options valid for --echo requests:

  -f, --flood                flood ping (root only)
      --ip-timestamp=FLAG    IP timestamp of type FLAG, which is one of
                             "tsonly" and "tsaddr"
  -l, --preload=NUMBER       send NUMBER packets as fast as possible before
                             falling into normal mode of behavior (root only)
  -p, --pattern=PATTERN      fill ICMP packet with given pattern (hex)
  -q, --quiet                quiet output
  -R, --route                record route
  -s, --size=NUMBER          send NUMBER data octets

  -?, --help                 give this help list
      --usage                give a short usage message
  -V, --version              print program version

Mandatory or optional arguments to long options are also mandatory or optional
for any corresponding short options.

Options marked with (root only) are available only to superuser.

Report bugs to <bug-inetutils@gnu.org>.
相关推荐
Cyan_RA91 小时前
SpringMVC @RequestMapping的使用演示和细节 详解
java·开发语言·后端·spring·mvc·ssm·springmvc
用户21411832636029 小时前
Qwen3-Coder 实战!历史人物短视频一键生成,多分镜人物不崩,魔搭直接玩
后端
追逐时光者9 小时前
C#/.NET/.NET Core技术前沿周刊 | 第 54 期(2025年9.8-9.14)
后端·.net
追逐时光者9 小时前
C#/.NET/.NET Core编程技巧练习集,配套详细的文章教程讲解!
后端·.net
AD钙奶-lalala10 小时前
SpringBoot实现WebSocket服务端
spring boot·后端·websocket
moxiaoran575310 小时前
Flask学习笔记(一)
后端·python·flask
你的人类朋友10 小时前
🔒什么是HMAC
后端·安全·程序员
盖世英雄酱5813611 小时前
Read timed out问题 排查
java·数据库·后端
BXCQ_xuan12 小时前
软件工程实践二:Spring Boot 知识回顾
java·spring boot·后端
o0o_-_12 小时前
【go/gopls/mcp】官方gopls内置mcp server使用
开发语言·后端·golang