From nixCraft comes a simple explanation on some more advanced features of the ping command.  Have a look at the using the ping command using spicific interfaces, ip address, and gateways.