前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >ping 命令 指定特定网卡 发送 ICMP 数据包

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

作者头像
xuyaowen
发布2020-12-30 16:31:40
2.5K0
发布2020-12-30 16:31:40
举报
文章被收录于专栏:XUYAOWEN的专栏XUYAOWEN的专栏

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.

代码语言:javascript
复制
➜  Desktop ping -I wlp3s0  baidu.com
PING baidu.com (123.125.115.110) from 10.210.10.160 wlp3s0: 56(84) bytes of data.
代码语言:javascript
复制
➜  Desktop ping -I tun0  baidu.com
PING baidu.com (220.181.57.216) from 10.72.12.142 tun0: 56(84) bytes of data.

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

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2018-07-12 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档