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 188.8.131.52/26 Address: 184.108.40.206 Netmask: 255.255.255.192 Network: 220.127.116.11 Broadcast: 18.104.22.168
Well, that’s my take on it, anyway. What do you guys think ?