Other Usage

Lookup Definition IPV6 CIDR matching

jhrac
Engager

Hello,

We have created lookup definitions that use CIDR matching for IPV4 ips and is working as expected.  We are running into issues with IPV6.

We are trying to create a lookup definition that does a CIDR lookup on a IPV6 IP.  The lookup file uses CIDR notation.  One example from the file is:

2a02:4780:10::/44

The IP that should match is:

2a02:4780:10:5be5::1

The lookup definition is:

CIDR(network)

 

Are IPV6 CIDR lookups supported?  If not, how can we do the lookup definition to satisfy the requrement? 

0 Karma
1 Solution

bowesmana
SplunkTrust
SplunkTrust

Are you saying it doesn't work?

This works fine

| makeresults
| fields - _time
| eval network="2a02:4780:10::/44"
| outputlookup ipv6.csv

and

| makeresults
| fields - _time
| eval ipv6="2a02:4780:10:5be5::1"
| lookup ipv6 network as ipv6 OUTPUT network  as v6IP

where the match type is defined as CIDR(network)

View solution in original post

0 Karma

bowesmana
SplunkTrust
SplunkTrust

Are you saying it doesn't work?

This works fine

| makeresults
| fields - _time
| eval network="2a02:4780:10::/44"
| outputlookup ipv6.csv

and

| makeresults
| fields - _time
| eval ipv6="2a02:4780:10:5be5::1"
| lookup ipv6 network as ipv6 OUTPUT network  as v6IP

where the match type is defined as CIDR(network)

0 Karma

bowesmana
SplunkTrust
SplunkTrust

My understanding is that IPv6 IS supported, but I do recall I may have had some issues with CIDR on IPv6. Can you test

| makeresults
| eval ipv6="2a02:4780:10:5be5::1"
| search ipv6="2a02:4780:10::/44"

because search definitely should support CIDR in ipv6

0 Karma
Get Updates on the Splunk Community!

Celebrating Fast Lane: 2025 Authorized Learning Partner of the Year

At .conf25, Splunk proudly recognized Fast Lane as the 2025 Authorized Learning Partner of the Year. This ...

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...