Re: Pinging an entire Class B

Alan Hannan (alan@gi.net)
Thu, 11 Jul 1996 02:16:12 -0500 (CDT)

That's a big arp cache.

You could fairly easily write a perl script to ping them all

for a = 1 - 255
for b = 1 - 255
ping A.B.a.b
next b
next a

......... Sam McLane is rumored to have said:
]
] I need to ping an entire class B in order to load my routers arp cache
] with all mac-ip pairs. I am using Solaris 2.5 and fping will not
] compile for me. ntping will doit but i cannot figure out the
] correct syntax to do say an entire class C at once. I do not care
] about the results. I just want the sytem in the arp cache.
]
] Any ideas would be greatly appreciated.
]
] -Sam McLane
] Network manager
] Temple University
] sam@olympus.is.temple.edu
]
]