May 2018
Intermediate to advanced
576 pages
30h 25m
English
The problem is about assigning ranges of IP addresses, while at the same time ensuring that we don't allocate (or potentially allocate) the same addresses to different people or purposes. This is easy to do if we keep track of each individual IP address, and much harder to do if we want to deal solely with ranges of IP addresses.
Initially, you may think of designing the database as follows:
CREATE TABLE iprange (iprange_start inet ,iprange_stop inet ,owner text);INSERT INTO iprange VALUES ('192.168.0.1','192.168.0.16', 'Simon');INSERT INTO iprange VALUES ('192.168.0.17','192.168.0.24', 'Gianni');INSERT INTO iprange VALUES ('192.168.0.32','192.168.0.64', 'Gabriele');
However, you'll realize ...