{"category":"web","endpoint":"https://setget.net/v1/tools/cidr-calc","examples":[{"input":{"addresses":["192.168.1.77","192.168.2.1"],"cidr":"192.168.1.0/24"},"output":{"broadcast":"192.168.1.255","cidr":"192.168.1.0/24","contains":[{"address":"192.168.1.77","inside":true},{"address":"192.168.2.1","inside":false}],"first_host":"192.168.1.1","host_bits_set":false,"is_link_local":false,"is_loopback":false,"is_private":true,"is_reserved":false,"last_host":"192.168.1.254","netmask":"255.255.255.0","network":"192.168.1.0","prefix":24,"scope":"private","subnets":null,"total_addresses":256,"usable_hosts":254,"version":4,"wildcard":"0.0.0.255"}},{"input":{"cidr":"10.0.0.0/22","new_prefix":24},"output":{"broadcast":"10.0.3.255","cidr":"10.0.0.0/22","contains":[],"first_host":"10.0.0.1","host_bits_set":false,"is_link_local":false,"is_loopback":false,"is_private":true,"is_reserved":false,"last_host":"10.0.3.254","netmask":"255.255.252.0","network":"10.0.0.0","prefix":22,"scope":"private","subnets":{"addresses_each":256,"count":4,"listed":["10.0.0.0/24","10.0.1.0/24","10.0.2.0/24","10.0.3.0/24"],"prefix":24,"truncated":false},"total_addresses":1024,"usable_hosts":1022,"version":4,"wildcard":"0.0.3.255"},"title":"Split into /24 subnets"}],"input_schema":{"additionalProperties":false,"properties":{"addresses":{"description":"IP addresses to test for being inside the block.","maxItems":100,"type":"array"},"cidr":{"description":"The block in CIDR form, such as 192.168.1.0/24 or 2001:db8::/48.","examples":["192.168.1.0/24"],"maxLength":100,"type":"string"},"new_prefix":{"description":"Split the block into subnets of this prefix length. The first 256 are listed.","maximum":128,"minimum":0,"type":"integer"}},"required":["cidr"],"type":"object"},"keywords":["cidr","subnet","netmask","ip range","subnet calculator","network address","broadcast","ipv6 prefix","vpc"],"related":["ip-inspect","url-parse"],"slug":"cidr-calc","summary":"Work out the network, netmask, host range and size of an IPv4 or IPv6 CIDR block, and split it into subnets.","tier":"inline","title":"CIDR and subnet calculator","url":"https://setget.net/tools/cidr-calc"}
