ping -I eth0 8.8.8.8

Category: Local Network & Public Hosting

ping -I eth0 8.8.8.8

Ping using a specific source interface

The -I flag binds the echo requests to eth0, forcing them out that interface rather than whatever the routing table picks. It is the standard test on multi-homed machines to prove a particular link has internet connectivity. Reply success means the interface, its gateway, and the path beyond all work.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.