Pinging Broadcast Address – What You Need to Know

broadcasticmpnetwork-discoveryping

Iam using linux.I read somewhere in the internet that pinging the 255.255.255.255 will ping everyone in the network segment. And it will return every ip addresses in that subnet. but when i tried

ashokkrishna@ashokkrishna-Lenovo-B560:~$ ping -b 255.255.255.255
WARNING: pinging broadcast address
PING 255.255.255.255 (255.255.255.255) 56(84) bytes of data.
64 bytes from 192.168.1.220: icmp_seq=1 ttl=64 time=100 ms
64 bytes from 192.168.1.220: icmp_seq=1 ttl=64 time=100 ms (DUP!)
64 bytes from 192.168.1.220: icmp_seq=2 ttl=64 time=128 ms
64 bytes from 192.168.1.220: icmp_seq=2 ttl=64 time=130 ms (DUP!)

I am only getting the reply from only one ip. how to get every ip, I know how to get every ip with nmap but what I read in the internet is totally opposite in my senario why?

same with

ashokkrishna@ashokkrishna-Lenovo-B560:~$ ping -b 192.168.1.255
WARNING: pinging broadcast address
PING 192.168.1.255 (192.168.1.255) 56(84) bytes of data.
64 bytes from 192.168.1.220: icmp_seq=1 ttl=64 time=55.2 ms
64 bytes from 192.168.1.220: icmp_seq=1 ttl=64 time=66.6 ms (DUP!)
64 bytes from 192.168.1.220: icmp_seq=2 ttl=64 time=78.5 ms
64 bytes from 192.168.1.220: icmp_seq=2 ttl=64 time=79.2 ms (DUP!)

Best Answer

Not all machines will answer a broadcast ping. (all broadcast -- 255.255.255.255, or subnet broadcast -- eg. x.x.x.255) Some see it as a "security feature", because one could spoof the origin to flood any host on the network.

Related Topic