schweikert / fping

High performance ping tool

Home Page:https://fping.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot bind source address : cannot assign requested address

abhiverma866 opened this issue · comments

I am trying to send ping messages to a host with source IP spoofed.
I am using :
sudo fping -l eth0 --src 192.168.207.10 192.168.207.135

192.168.207.10 is spoofed IP (source)
192.168.207.135 is destination
When I run the mentioned command linux return the following error:
Cannot bind source address : cannot assign requested address

If you don't have the IP on the device you are running fping on, then that's the correct output. This is outside of fping, you'd see the same output if you try to use ping -I <src> <dest> if the is not present to bind to.