Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Webcast-Catalyst9k
New Member

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
Silver

Re: Ping Sweep on Router

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

Cisco Employee

Re: Ping Sweep on Router

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

2 REPLIES
Silver

Re: Ping Sweep on Router

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

Cisco Employee

Re: Ping Sweep on Router

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

4389
Views
0
Helpful
2
Replies
CreatePlease to create content