Skip to content

AxonOps — AI-Native Control Plane for Open Source Data Platforms

nodetool getcidrgroupsofip

Cassandra 5.0+

This command is available in Cassandra 5.0 and later.

Finds which CIDR groups contain a specific IP address.


Terminal window
nodetool [connection_options] getcidrgroupsofip <ip_address>

See connection options for connection options.


nodetool getcidrgroupsofip determines which CIDR groups include the specified IP address. This command is useful for troubleshooting authorization issues and verifying that IP addresses are correctly categorized.


ArgumentDescription
ip_addressThe IP address to look up (IPv4 or IPv6)

Terminal window
nodetool getcidrgroupsofip 10.1.50.100

Sample output:

CIDR groups containing IP 10.1.50.100:
- internal_network
- datacenter_us
Terminal window
nodetool getcidrgroupsofip 203.0.113.50

Sample output (if not in any group):

CIDR groups containing IP 203.0.113.50:
(none)
Terminal window
nodetool getcidrgroupsofip 2001:db8::1

Terminal window
# Check if client IP is in expected groups
nodetool getcidrgroupsofip 10.5.20.100

When clients receive authorization errors, use this command to verify the client's IP address belongs to the expected CIDR groups.

Terminal window
# Verify IP categorization after changes
nodetool updatecidrgroup new_subnet '10.5.0.0/16'
nodetool getcidrgroupsofip 10.5.20.100

After modifying CIDR groups, verify that IP addresses are categorized correctly.

Terminal window
# Check what groups an IP belongs to
nodetool getcidrgroupsofip 192.168.1.100

Audit which access groups apply to specific IP addresses during security reviews.


Troubleshooting Tips

  1. Test from client perspective - Use the actual client IP address
  2. Consider NAT - The IP address must be what Cassandra sees, not the original source
  3. Check overlapping groups - An IP may belong to multiple groups
  4. Verify after changes - Always verify IP categorization after modifying CIDR groups

IP Address Format

  • Use standard notation for IPv4 (e.g., 192.168.1.100)
  • Use standard notation for IPv6 (e.g., 2001:db8::1)
  • Do not include port numbers
  • Do not include CIDR notation (this looks up a single IP)

CommandRelationship
listcidrgroupsList all CIDR groups
cidrfilteringstatsView filtering statistics
updatecidrgroupModify CIDR groups
dropcidrgroupRemove CIDR groups
invalidatecidrpermissionscacheClear CIDR cache