In-between Query for IP data type

Thanks for the response, does this mean, I will have to index all the IPv6 addresses into an index to be able to search using CIDR?

no you don't need to. I was just giving an example to simulate the data

The only thing you need to be careful is the "mapping" of the field of ip_address. That needs to be type of type "ip"
So the index which you have loaded , try to change the mapping of the field where the ip_addr resides to ip and then you have full flexiblity