Smart Groups Using IP

eculp
New Contributor

I'm trying to set up smart groups based on IP range. Example on campus IP range is 10.200.x.x so on campus smart group would be any IPs that start with 10.200 and off campus would be not 10.200.
When I test this, I find 10.200.x.x IPs in the off campus group. I've used the parameters IP Address not like 10.200
I've also tried a range 10.200.10.1 - 10.200.25.254 to no avail.
I'm sure it's something simple but I'm not seeing it.
Any help would be appreciated.

Eric

2 REPLIES 2

jarednichols
Honored Contributor

You may have trouble with this based upon how MySQL compares numbers. My assumption is that the reason it's behaving oddly to you is because the IP addresses are stored as strings.

eculp
New Contributor

That was my assumption, too. However, I still am looking for a solution.

Eric