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