I have the task of comparing the IP address with the CIDR in the database (MYSQL) to get the value of the access technology. for example, I got a client's 10.1.2.5. And in the list of networks I have a list:
10.1.0.0/24 ETHERNET
10.1.1.0/24 WIFI
10.1.2.0/24 WIFI
I understand how to store this pair in the database. And then how can I compare the lines from the base with the value of the IP address. pls help me