08-11-2010 05:50 PM - edited 03-04-2019 09:23 AM
Is there a way to perform a ping sweep of an entire subnet on a router without using a third party utilitiy?
Thanks in advance.
Solved! Go to Solution.
08-11-2010 06:02 PM - last edited on 04-15-2022 01:08 AM by Translator
If the goal of the ping sweep is to see all the hosts on a particular subnet then the router arp table is a valuable resource.
Ping the broadcast address; then view the arp table. For example if the subnet in question is 192.168.1.0/24; then ping 192.168.1.255 from the router. Then execute a
show arp | inc
The results should be all mac/IP addresses on that subnet.
Chris
08-11-2010 07:00 PM - last edited on 04-15-2022 01:09 AM by Translator
You can try a TCL script like the following. Assuming your network is 10.1.1.0/24 (.1-.254)
tclsh
for {set i 1} {$i <= 254} {incr i} {
set var 10.1.1.
append var $i
ping $var rep 3 time 1}
ROUTER(tcl)#tclquit
Remember to use tclquit to exit the TCL prompt.
HTH,
jerry
08-11-2010 06:02 PM - last edited on 04-15-2022 01:08 AM by Translator
If the goal of the ping sweep is to see all the hosts on a particular subnet then the router arp table is a valuable resource.
Ping the broadcast address; then view the arp table. For example if the subnet in question is 192.168.1.0/24; then ping 192.168.1.255 from the router. Then execute a
show arp | inc
The results should be all mac/IP addresses on that subnet.
Chris
08-11-2010 07:00 PM - last edited on 04-15-2022 01:09 AM by Translator
You can try a TCL script like the following. Assuming your network is 10.1.1.0/24 (.1-.254)
tclsh
for {set i 1} {$i <= 254} {incr i} {
set var 10.1.1.
append var $i
ping $var rep 3 time 1}
ROUTER(tcl)#tclquit
Remember to use tclquit to exit the TCL prompt.
HTH,
jerry
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: