This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/bin/python3 | |
import sys | |
import ipaddress as ip | |
def print_help(): | |
print("Usage: ") | |
print("main.py address [computers]\n") | |
print("address: must be an IPv4 network address (including netmask in shorthand e.g. 192.168.211.0/27)") | |
print("computers: optional - Number of computers on subnet. Will only print first and last host address.") |