ping 命令 指定特定网卡 发送 ICMP 数据包

2018-07-12 07:32:16来源:博客园 阅读 ()

容器云强势上线!快速搭建集群,上万Linux镜像随意使用

Windows : ping -S

Linux : ping -I <device>

-I interface
interface is either an address, or an interface name. If interface is an address, it sets source address to specified interface address. If interface in an
interface name, it sets source interface to specified interface. For IPv6, when doing ping to a link-local scope address, link specification (by the
'%'-notation in destination, or by this option) is required.

?  Desktop ping -I wlp3s0  baidu.com
PING baidu.com (123.125.115.110) from 10.210.10.160 wlp3s0: 56(84) bytes of data.
?  Desktop ping -I tun0  baidu.com
PING baidu.com (220.181.57.216) from 10.72.12.142 tun0: 56(84) bytes of data.

保持更新,转载请标明出处。

标签:

版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有

上一篇:centos 安装 nginx

下一篇:Configure network bonding on RHEL (Red Hat Enterprise Linux)