cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
11332
Views
15
Helpful
2
Replies
davidhuynh5
Beginner

Ping Sweep on Router

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.

2 ACCEPTED SOLUTIONS

Accepted Solutions
gatlin007
Enthusiast

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

View solution in original post

Jerry Ye
Cisco Employee

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

View solution in original post

2 REPLIES 2
gatlin007
Enthusiast

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

View solution in original post

Jerry Ye
Cisco Employee

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

View solution in original post