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>.
相关推荐
间彧15 小时前
CAS技术原理与应用详解
后端
华仔啊15 小时前
35岁程序员失业了,除了送外卖,还能做什么?
前端·后端·程序员
SimonKing16 小时前
【开发者必备】Spring Boot 2.7.x:WebMvcConfigurer配置手册来了(二)!
java·后端·程序员
程序员飞哥16 小时前
别再说“对接接口没技术含量了”,这才是高手的打开方式!
后端·程序员
DokiDoki之父16 小时前
Spring—容器
java·后端·spring
摇滚侠16 小时前
Spring Boot 3零基础教程,WEB 开发 国际化 Spring Boot + Thymeleaf 笔记45
spring boot·笔记·后端
间彧16 小时前
Java AQS详解与项目实战
后端
golang学习记16 小时前
性能飙升4倍,苹果刚发布的M5给人看呆了
人工智能·后端
程序员爱钓鱼17 小时前
Python编程实战 · 基础入门篇 | 类型转换与输入输出
后端·python
程序员爱钓鱼17 小时前
Python编程实战 · 基础入门篇 | 运算符详解
后端·python·编程语言