Skip to content

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

nodetool listcidrgroups

Cassandra 5.0+

This command is available in Cassandra 5.0 and later.

Lists all defined CIDR groups in the cluster.


Terminal window
nodetool [connection_options] listcidrgroups [cidrGroup]

See connection options for connection options.

ArgumentDescription
cidrGroupOptional. Name of a specific CIDR group to list CIDRs for

nodetool listcidrgroups displays all CIDR groups defined in the cluster. CIDR groups are named collections of IP address ranges used for network-based access control.

CIDR groups can be assigned to roles to restrict which IP addresses can authenticate as those roles, providing an additional layer of security beyond username/password authentication.


Without arguments, the command displays a list of CIDR group names:

CIDR Groups
internal_network
datacenter_us
datacenter_eu
vpn_clients

With a group name argument, it displays the CIDRs for that group:

CIDRs for Group: internal_network
10.0.0.0/8
172.16.0.0/12
192.168.0.0/16

Terminal window
nodetool listcidrgroups

Sample output:

CIDR Groups
internal_network
datacenter_us
datacenter_eu
vpn_clients
Terminal window
nodetool listcidrgroups internal_network

Sample output:

CIDRs for Group: internal_network
10.0.0.0/8
172.16.0.0/12
192.168.0.0/16

Terminal window
# Review all CIDR-based access rules
nodetool listcidrgroups

Use this command to:

  • Audit network-level access control configuration
  • Verify CIDR groups before assigning to roles
  • Document current security configuration
  • Troubleshoot connection authorization issues
Terminal window
# Check current groups before changes
nodetool listcidrgroups
# Then modify as needed
nodetool updatecidrgroup new_office '192.168.50.0/24'

CIDR Group Management

  1. Use descriptive names - Name groups by purpose (e.g., datacenter_us, office_network)
  2. Document groups - Maintain external documentation of CIDR group purposes
  3. Review regularly - Periodically audit groups for accuracy
  4. Least privilege - Define specific ranges rather than broad ones

Security Considerations

  • CIDR groups are part of your security configuration
  • Changes affect which IPs can authenticate as specific roles
  • Test changes in non-production environments first
  • Coordinate with network team when defining ranges

CIDR groups are stored in the system tables and can be managed through:

  • CQL commands (CREATE CIDR GROUP, ALTER CIDR GROUP)
  • nodetool commands (updatecidrgroup, dropcidrgroup)

CommandRelationship
cidrfilteringstatsView filtering statistics
getcidrgroupsofipFind groups containing an IP
updatecidrgroupAdd or modify CIDR groups
dropcidrgroupRemove CIDR groups
invalidatecidrpermissionscacheClear authorization cache
reloadcidrgroupscacheReload groups from storage