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