9 lines
222 B
Python
9 lines
222 B
Python
import ipaddress
|
|
|
|
net = ipaddress.ip_network("201.90.0.0/16")
|
|
subnets = net.subnets(new_prefix=22)
|
|
|
|
for subnet in subnets:
|
|
start = subnet.network_address
|
|
end = subnet.broadcast_address
|
|
print(f"{start} - {end}") |