Forum Discussion
Lee_Sutcliffe
Jan 12, 2018Nacreous
You can use
[IP::addr]
so that you may use a CIDR mask notation for the subnet:
https://devcentral.f5.com/wiki/iRules.IP__addr.ashx
when DNS_REQUEST {
if { [IP::addr[IP::client_addr]] equals "10.80.0.0/16" } {
pool pool_10_80
} elseif { [IP::addr[IP::client_addr]] equals "10.96.0.0/16" } {
pool pool_10_96
} elseif { [IP::addr[IP::client_addr]] equals "172.27.0.0/16" } {
pool pool_172_27
}
}