09-09-2025 02:26 AM - edited 09-09-2025 02:26 AM
Hi
I have a requirement to profile devices based on IP range. This is easy if my subnets are on octet boundries. So I can match the 10.10.10.0/24 subnet with startswith 10.10.10 and that works fine.
However if my subnet is, for example, 10.10.0.0/20 I need to match 10.10.0.0 to 10.10.15.255 and I would like to match this with a startswith statement. Is there any way I can insert a range of 0-15 in the startswith field or is there any other way I could do this?
Thanks, Kev.
09-09-2025 04:19 AM
i do not believe that have option as per i know, its wish list, but not a good idea have 3rd octet range.
=====Preenayamo Vasudevam=====
***** Rate All Helpful Responses *****
09-10-2025 12:13 PM - edited 09-26-2025 12:16 PM
@KevinR99 wrote:Hi
I have a requirement to profile devices based on IP range. This is easy if my subnets are on octet boundries. So I can match the 10.10.10.0/24 subnet with startswith 10.10.10 and that works fine.
However if my subnet is, for example, 10.10.0.0/20 I need to match 10.10.0.0 to 10.10.15.255 and I would like to match this with a startswith statement. Is there any way I can insert a range of 0-15 in the startswith field or is there any other way I could do this? y999
Thanks, Kev.
I see what you’re running into. A /20 subnet like 10.10.0.0/20 spans multiple /24 networks (10.10.0.0/24 through 10.10.15.0/24). A simple startswith string match works fine for octet boundaries (like /24), but it won’t handle ranges inside an octet (like 0–15) because startswith is just a string check — it can’t do numeric ranges.
09-10-2025 12:54 PM
Why is that your requirement at all? What information are you not getting from Device Sensor?
09-11-2025 08:52 AM
My problem is I have 10 floors in my buiding. Each has a different subnet for door entry systems and those have static IP's applied. So I want to profile them based on the static IP and place them in an endpoint group specific to their IP subnet. I can't profile on MAC OUI or any other info like that because they are all the same type of device. I will then use the endpoint group in a mab policy to authenticate the port and place it in the appropriate vlan. So, if my subnets are not on octet boundries I cannot match with startswith. If my subnet is 10.10.0.0/20 I would need to match on starts with 10.10.0. up to 10.10.15. I could create 16 profiling rules but that's getting a bit labour intensive especially as the subnets get bigger.
I had hoped I could apply a regex expression to match 0-15 in the 3rd octet but I can't find a way to do that.
Kev.
09-11-2025 09:26 AM
Got it. Are those ports exposed to the general user population? Or are they protected in a locked area? Have you considered removing the ISE authentication commands from those ports entirely and just manually configuring the VLANs?
For static IP devices like this, I typically recommend my customers use a SPAN-based profiler like Ordr, Armis, or Cisco Endpoint Analytics.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide