Python for Network Engineers

How to Ping Multiple Addresses Asynchronously Part I

By George El. • February 2019 • Reading time: 2 minutes

In this post, I will show you how to ping many ip addresses synchronously, or asynchronously using threads. the following examples work only with python 3. First I will use a list comprehension to create a list of ip addresses ips = ["192.168.2.{}".format(i) for i in range(1,11)] the above code will create addresses 192.