python: netaddr 
netaddr is a Python library for representing and manipulating network addresses.

It support the ability to work and interact with the following:

IPv4 and IPv6 addresses and subnets
MAC addresses, OUI and IAB identifiers, IEEE EUI-64 identifiers
arbitrary (non-aligned) IP address ranges and IP address sets
various non-CIDR IP range formats such as nmap and glob-style formats


from netaddr import IPNetwork

ipnetwork = '192.168.0.0/24'
print list(IPNetwork(ipnetwork).iter_hosts())


[ add comment ] ( 5 views )   |  [ 0 trackbacks ]   |  permalink  |  related link

<<First <Back | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | Next> Last>>