Get Subnet
get_subnetDerive the /24 CIDR prefix from an IPv4 address; for IPv6 or invalid inputs, get an explanation why no /24 subnet applies. Runs locally with no API calls.
Instructions
Derive the /24 CIDR prefix from an IPv4 address (e.g. 8.8.8.8 → 8.8.8.0/24). For IPv6 or invalid addresses, returns a message explaining why no /24 subnet applies. Runs locally — no API call, no quota usage.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ip | Yes | the IPv4 or IPv6 address to look up |