Ping IP with source IP?

command-line, ping, windows

Solution

You only need/want the `-S` flag if you have multiple network interface cards (NICs), and you want the source of the pings to come from a specific NIC; this is seldom needed. Your command

ping example.org -i 88.65.48.77

is actually saying to ping example.org with a TTL (time to live) value of 88.65.48.77, where -i is really expecting a maximum number of "hops" -- say 10, not an IP address.

So if you are trying to ping 88.65.48.77, just

ping 88.65.48.77

Problem

I am trying to send ping, but using with a source Ip. Tried this, ``` ping example.org -i 88.65.48.77 ``` It pings without any errors, but I am confused. In the manual, it says -S is a source operator. But if I use -S 88.65.48.77, I get a `Ping Transmit failed. General Error.` So what is the correct way to do that ?

Original source