Windows : ping -S Linux : ping -I <device> -I interface interface is either an address, or an interface name. If interface is an address, it sets source address to specified interface address. If interface in an interface name, it sets source interf…