cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
16446
Views
25
Helpful
2
Replies

Ping Sweep on Router

davidhuynh5
Level 1
Level 1

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
Level 4
Level 4

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
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
Level 4
Level 4

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

Jerry Ye
Cisco Employee
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

Review Cisco Networking for a $25 gift card