is_within(ip_address("192.168.2.6"), ip_network("192.168.2.0/28"))
is_within(ip_address("192.168.3.6"), ip_network("192.168.2.0/28"))
is_within_any(ip_address("192.168.3.6"), ip_network(c("192.168.2.0/28", "192.168.3.0/28")))
Run the code above in your browser using DataLab