irule that will direct traffic based on source IP

Hello,

I was wondering if there was a way to use an I rule to direct traffic to a specific pool based on the first two octes.

We have one VIP and will have 7 diff. pools and will have approx 200 dif. source IPs. But, we need to send specific source IP traffic to a specific pool.

So is there a way say if IP contains 10.100.x.x send to pool A if IP contains 10.200.x.x send to pool B?

Thanks.

sure, simple compare against subnet 10.100.0.0/16 and 10.200.0.0/16. there are enough examples on how to do that.

something like this: https://devcentral.f5.com/questions/pool-redirect-based-on-source-ip-range