Here you can see an interesting idea allowing to manage IP address database using just a spreadsheet. It is simple and does not require lots of calculation. Now address.mask gateway and IPv4 address space becomes suddenly easy to depict. And all you know that picture is worth a lot:
Classful Ranges Reserved Ranges
A 0.0.0.0 - 127.255.255.255 RFC 1918 10.0.0.0 - 10.255.255.255
B 128.0.0.0 - 191.255.255.255 Localhost 127.0.0.0 - 127.255.255.255
C 192.0.0.0 - 223.255.255.255 RFC 1918 172.16.0.0 - 172.31.255.255
D 224.0.0.0 - 239.255.255.255 RFC 1918 192.168.0.0 - 192.168.255.255
E 240.0.0.0 - 255.255.255.255