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>.
相关推荐
汪子熙1 分钟前
什么是 ArkTS
后端·面试
汪子熙3 分钟前
深入解析计算机科学中的 Opaque 概念
后端
满分观察网友z13 分钟前
从混乱到有序:我用“逐层扫描”法优雅搞定公司组织架构图(515. 在每个树行中找最大值)
后端·算法
风象南17 分钟前
SpringBoot应用开机自启动与进程守护配置
java·spring boot·后端
寻月隐君20 分钟前
Rust核心利器:枚举(Enum)与模式匹配(Match),告别空指针,写出优雅健壮的代码
后端·rust·github
满分观察网友z20 分钟前
一行代码的惊人魔力:从小白到大神,我用递归思想解决了TB级数据难题(3304. 找出第 K 个字符 I)
后端·算法
程序员岳焱21 分钟前
Java 与 MySQL 性能优化:MySQL连接池参数优化与性能提升
后端·mysql·性能优化
这里有鱼汤22 分钟前
一招横盘突破选股法,赚钱不靠运气靠图形,靠概率!
后端·python
万少32 分钟前
鸿蒙外包的十大生存法则
前端·后端·面试
fouryears_2341735 分钟前
Spring核心原理的快速入门:快速了解IoC与DI
java·后端·spring