How to Search for Data from Specific Subnets
search cancel

How to Search for Data from Specific Subnets

book

Article ID: 166472

calendar_today

Updated On:

Products

Reporter Reporter-VA

Issue/Introduction

You can customize any report by adding a filter to it.  There are many filters that can be used including filtering on data from a specific subnet,  using "Client IP" with "matches" OR "is" option

 

Resolution

Steps to use this feature:

  • Login to reporter using any valid login id.
  • Run a report.
  • Choose "Report Options"
  • Choose the same filter you used to use- Client-Ip, for example.
    • Choose "Matches" on the next drop down (can be used for classful or classless subnetting a.k.a CIDR / VLSM )
      • Now type in the network number and mask you wish to search for.  
      • 10.12.13.0/24 to search for all network numbers that start with 10.12.13.0
      • 10.1.0.0/16 to search for all the network numbers that start with 10.1.*.*
      • 10.0.0.0/8   to search for all the network numbers that start with   10.*.*.*
      • 10.10.10.128/25 to search for all client with 10.10.10.129 to 254  IPs
      • You always need to fill out all four numbers regardless of how long your last number is - /8  /16  or /24 .
    • or Choose "Is"  on the next drop down menu (can only filter classful subnets)
      • Type in the network number and mask you wish to search for.
      •  10.12.13.*  to search for any IP in network 10.12.13.0/24
      • 10.1.* to  search for any IP in network 10.1.0.0/16
      • 10.* to  search for any IP in network 10.0.0.0/8

NOTE:  Any other filtering criteria can be added to this report.  For example, you may wish to add in a specific username here, such as  User -> Is -> , or if you want it to be ANY authenticated user, select the negate filter of User -> Is Not -> -EMPTY-.

Detailed discussion of how CIDR notation works:

With this feature, Reporter allows for the user of CIDR notation.  So, instead of a wildcard such as  10.12.13.*, we now  use a this format - 10.12.13.0/24 - to search for the same thing.  To search for all numbers in the subnet of 10 we'd use 10.0.0.0/8 

This filter allows you to use  C.I.D.R notation to filter for IP addresses in Reporter.  C.I.D.R notation stands for Classless, InterDomain Routing.  Standard IP addresses ( version 4) today  contain four base ten numbers separated by a dot ( .).   For example 10.1.2.3.   In previous versions of Reporter,  to search for a IP address in the database you could only use a wild card search that was limited by the base ten numbering system,  such as 10.1.2.*.  This would give you all the IP addresses that start with 10.1.2. and simplistically speaking all the hosts that reside in the network number 10.1.2. X  

However, in todays routing infrastructure, network numbering rarely, if at all, contains itself to the "dot" boundary  in the IP address. The network number is almost always a number the crosses over this boundary and takes up part of the next number after the dot. Computers  to not "THINK" in terms of the numbers we see in the IP address, they think in terms of a binary number.  So while we see 10.2.3.4.  the computer sees 00001010.00000010.00000011.00000100.   Using a binary number to mask out the network number can, as you can see, cross very over into  our human "dots'..  Each number we see in the IP address is 8 binary digits.  Today, with the use of CIDR notation, we can cross over this boundary by counting the number of binary digits from left to right to be our network mask.   In other words, a CIDR number of 12 would cross over the first number and be 4 binary digits into the second number., but a number of 24 would mask  the entire first three numbers we see in the IP address.

Click here for more information about CIDR / VLSM

 Note 1: You can also use "Does not Match Mask" for addresses you want to exclude from your results.

Note 2: See your network administrator for what masks he/she may be using in their network.