自機のNICを指定し、pingを実行する

自機のNICを指定し、pingを実行するには、ping コマンドのオプション -I を使用します。

# ping -I eth1 192.168.0.x
PING 192.168.0.x (192.168.0.x) from 192.168.0.x eth1: 56(84) bytes of data.
64 bytes from 192.168.0.x: icmp_seq=1 ttl=64 time=0.476 ms
64 bytes from 192.168.0.x: icmp_seq=2 ttl=64 time=0.459 ms

 

[対象]
CentOS 5.x
CentOS 6.x