Ping Sweep on Router

Answered Question
Aug 11th, 2010

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.

I have this problem too.
0 votes
Correct Answer by Jerry Ye about 6 years 5 months ago

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

Correct Answer by gatlin007 about 6 years 5 months ago

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

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (2 ratings)
Loading.
Correct Answer
gatlin007 Wed, 08/11/2010 - 18:02

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

Correct Answer
Jerry Ye Wed, 08/11/2010 - 19:00

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

Actions

This Discussion