Cmd Generator

ping

向网络主机发送 ICMP ECHO_REQUEST 请求。

ping -c 4 google.com

示例

# Ping 主机
ping google.com

# 指定发送次数
ping -c 4 google.com

# 设置间隔和数据包大小
ping -i 0.5 -s 100 google.com

# 设置 TTL
ping -t 64 google.com

# 限制总时间
ping -w 10 google.com

# 洪水模式(需要 root)
ping -f -c 1000 localhost

# 通过指定接口 ping
ping -I eth0 192.168.1.1

Sponsors