Broadcast and Network PING Command
There may be a need to view all IPs in a particular subnet of Cisco Router. This simple command will send query to Network ID or Broadcast ID of the Subnet and get response from all the live IPs in the subnet. Below example will help understand how pinging the broadcast and network ID gives us output on available IPs in the subnet.
Usage of Ping Command
R1 is connected to 2 LAN segments 192.168.0.0/24 and 192.168.1.0/24.
Lets see the output of ping command –
Type escape sequence to abort.
Sending 1, 100-byte ICMP Echos to 192.168.0.0, timeout is 2 seconds:
Reply to request 0 from 192.168.0.5, 68 ms
Reply to request 0 from 192.168.0.2, 68 ms
Reply to request 0 from 192.168.0.3, 68 ms
Reply to request 0 from 192.168.0.6, 68 ms
Reply to request 0 from 192.168.0.4, 68 ms
As shown above, when we ping network ID, all the hosts present in the network will reply toICMP query and hence their reply is shown in the above scenario.
Another option is to ping broadcast address of the subnet as below
Type escape sequence to abort.
Sending 1, 100-byte ICMP Echos to 192.168.0.255, timeout is 2 seconds:
Reply to request 0 from 192.168.0.5, 72 ms
Reply to request 0 from 192.168.0.2, 76 ms
Reply to request 0 from 192.168.0.6, 76 ms
Reply to request 0 from 192.168.0.3, 72 ms
Reply to request 0 from 192.168.0.4, 72 ms
Above scenario showed how we can get reply from the subnet by pinging its network address or broadcast address.
Additionally, below command will provide the response from all the alive IPs in all the connected subnets of Router R1
Type escape sequence to abort.
Sending 1, 100-byte ICMP Echos to 255.255.255.255, timeout is 2 seconds: Reply to request 0 from 192.168.0.2, 64 ms
Reply to request 0 from 192.168.0.6, 68 ms
Reply to request 0 from 192.168.1.8, 68 ms
Reply to request 0 from 192.168.1.7, 68 ms
Reply to request 0 from 192.168.0.5, 68 ms
Reply to request 0 from 192.168.0.3, 68 ms
Reply to request 0 from 192.168.0.4, 68 ms
R1#
Continue Reading:
Meaning of Ping Response for IPv4 Address
ABOUT THE AUTHOR
I am here to share my knowledge and experience in the field of networking with the goal being – “The more you share, the more you learn.”
I am a biotechnologist by qualification and a Network Enthusiast by interest. I developed interest in networking being in the company of a passionate Network Professional, my husband.
I am a strong believer of the fact that “learning is a constant process of discovering yourself.”
– Rashmi Bhardwaj (Author/Editor)