A simple python script converts a Classless Inter-Domain Routing (CIDR)-formatted IP address into an IP range and netmask without using any third-party packages.
let’s see an example:
$ python subnet.py 22.214.171.124/26 Address: 126.96.36.199 Netmask: 255.255.255.192 Network: 188.8.131.52 Broadcast: 184.108.40.206
Well, that’s my take on it, anyway. What do you guys think ?