postgres=# select inet '192.168.0.100' <<= inet '192.168.0.0/24';
?column?
----------
t
(1 row)
postgres=# select inet '192.168.2.112' >= inet '192.168.0.0' AND inet '192.168.2.112' <= inet '192.168.10.255';
?column?
----------
t
(1 row)
postgres=#