Forum Discussion
juan_salinas_47
Nimbostratus
Aug 08, 2010matching a host or network inside a data group using class match
hi,
i was trying to find a solution in devcentral without success.
my (stupid) question is....
i have a data group with this entries:
10.10.0.0/16
10.10.1.1
if i use "class match" command with client ip address 10.10.1.1 ....what is the result???
there is a order matching a data class type ip?
thanks and excuse my english
- Chris_Miller
Altostratus
Awesome question...I imagine it would go top to bottom as far as your list goes. If you're using 10.1, you can use the "value field," use different values for your 2 entries, and log the value for the one that gets hit. - juan_salinas_47
Nimbostratus
Chris, - Chris_Miller
Altostratus
Awesome exercise Juan! I suppose the "most specific match" does follow F5's logic since that's how they handle VIPs. I unfortunately cannot locate a precise wiki on "Data Groups" - L4L7_53191
Nimbostratus
In general, way BigIP resolves ambiguity like this is that it matches most specific first, so this makes perfect sense. It holds true for VIPs (e.g. a VS definition like 0.0.0.0:80 will match HTTP, while 0.0.0.0:0 handles everything else) as well as data groups and any other potential 'multi-match' situation I can think of. The more specific match will (and should) always win. - The_Bhattman
Nimbostratus
I would imagine that rule changes when you use "contains, ends_with, starts_with", correct? - Chris_Miller
Altostratus
Posted By The Bhattman on 08/09/2010 09:06 AM - L4L7_53191
Nimbostratus
I believe that syntax is specific to string type data groups. BigIP treats IP/subnet groups differently. Someone please correct me if I am wrong. - unRuleY_95363Historic F5 AccountActually, for IP/networks, equals and starts_with would effectively be the same. Eg: is it not true that 1.1.1.1 starts_with 1.1.1.0/24? So, under the covers, the matching actually uses more of a starts_with type of logic when matching IP's. However, when matching IP datagroups you will only be allowed to use the "equals" operator. The other operators are not allowed.
- juan_salinas_47
Nimbostratus
thanks, data group type ip is clear for me now. - Chris_Miller
Altostratus
Posted By unRuleY on 08/09/2010 01:39 PM
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects