Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

An IP address identifies one network interface or endpoint, a CIDR block identifies a range of IP addresses, and an ASN identifies an autonomous routing system. They often appear together in network documentation, but they answer different questions. An address tells you where traffic is delivered, a CIDR prefix describes which addresses belong to a network, and an ASN identifies the routing policy domain that exchanges routes with other networks.

The short answer

Term What it identifies Typical notation Operational role
IP address An individual interface or endpoint IPv4 dotted decimal or IPv6 hexadecimal Packet addressing
CIDR block A contiguous range of addresses represented by a network prefix Prefix followed by a slash length, such as 192.0.2.0/24 Address allocation and route summarization
ASN An Autonomous System (AS), a routing system operating under a common policy An autonomous-system number, such as an integer used in BGP Interdomain routing identity

These are related but not interchangeable. A company can use several CIDR blocks and individual IP addresses inside a network associated with one ASN. The ASN is not an address, and a CIDR block is not another way to write an ASN.

What is an IP address?

An IP address is the numerical address used by Internet Protocol to identify an interface or endpoint. Routers and hosts use it as the destination or source of packets.

IPv4

IPv4 addresses are 32 bits wide. They are normally written as four decimal octets separated by periods, for example 192.0.2.53. Each octet ranges from 0 through 255. The four numbers are simply a human-friendly representation of the underlying 32 binary bits.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Sale
Pearson Computer Networking, 8E
  • brand: Pearson
  • Computer Networking, 8e

IPv6

IPv6 addresses are 128 bits wide and are conventionally written as hexadecimal groups separated by colons, for example 2001:db8::53. IPv6’s larger address space changes the notation and allocation model, but the basic purpose remains the same: identifying an interface or endpoint for IP communication.

Address does not always mean public reachability

An address can be private, documentation-only, loopback, link-local, or otherwise restricted. Seeing an IP address in a configuration or registry record does not prove that the address is reachable from the public Internet. Reachability depends on routing, filtering, DNS, firewalls, and the state of the host.

What is a CIDR block?

CIDR means Classless Inter-Domain Routing. CIDR notation combines a network address with a slash and the number of leading bits that form the network prefix. In 192.0.2.0/24, the first 24 bits are the prefix and the remaining 8 bits identify addresses within the block.

Calculating an IPv4 block size

For IPv4, a prefix length of /n leaves 32 - n host bits. The total number of addresses is therefore 2(32-n). A /24 leaves eight host bits, so it contains 256 total addresses.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  • /32: one IPv4 address
  • /30: four total addresses
  • /24: 256 total addresses
  • /16: 65,536 total addresses

Traditional subnetting conventions may reserve addresses for a network identifier and broadcast address, so the number of assignable host addresses can be smaller than the total. Modern point-to-point links and cloud platforms can apply different rules; check the platform’s documentation before planning capacity.

IPv6 prefixes

IPv6 uses the same slash-length idea, but the address width is 128 bits. A prefix such as 2001:db8:1234::/48 describes all IPv6 addresses sharing the first 48 bits. Do not apply IPv4 host-count assumptions to an IPv6 prefix.

Why CIDR matters to routing

CIDR lets operators allocate address space at variable lengths and advertise summarized routes. A single prefix can represent many individual addresses, reducing the number of entries other routers must process. More-specific prefixes can still be used when traffic needs a narrower destination, subject to routing policy and protocol rules.

What is an ASN?

An Autonomous System is a routing system or administrative domain that presents a common external routing policy. Its ASN is the number used to identify that system, especially in the Border Gateway Protocol (BGP), the principal interdomain routing protocol.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

What an ASN is not

  • It is not the IP address of a server, router, or customer.
  • It is not a CIDR block or a count of addresses.
  • It does not, by itself, prove that a particular prefix is currently announced.

In a BGP path, ASNs show the sequence of routing systems through which a route has been learned. Network operators use that information for policy decisions, path selection, filtering, and troubleshooting.

When a separate ASN is appropriate

RIPE NCC guidance says, “A new ASN should only be used if a new external routing policy is required.” In practice, an organization that has one external routing policy may not need multiple ASNs merely because it has several sites, routers, or address blocks. Requirements vary by registry and network design, so consult the relevant Regional Internet Registry (RIR) and your upstream providers.

How the three fit together

Consider the documentation example 192.0.2.53. It is one IPv4 address. The address belongs to the example prefix 192.0.2.0/24, which contains 256 total IPv4 addresses. An ASN would identify the autonomous routing system whose policy is associated with an announcement or other interdomain routing information for a prefix. The address and prefix describe addressing; the ASN describes the routing system.

192.0.2.0/24 is reserved for documentation, so it should not be presented as a normal production allocation. Use it in diagrams, examples, and test documentation rather than assuming it is publicly routable.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Registration, allocation, and reachability

IANA coordinates global Internet number registries and delegates address pools and ASN resources to the five Regional Internet Registries. RIRs serve geographic regions and distribute resources to network operators and other eligible recipients.

That administrative chain is different from live routing. A registry entry can show who received or is responsible for a resource, while BGP announcements determine what routes are currently being advertised. A prefix may be registered but not announced, announced only to selected peers, filtered, withdrawn, or unreachable because of failures or policy. Always distinguish ownership or registration records from observed reachability.

Common points of confusion

“Is a CIDR block an IP address?”

No. A /32 IPv4 prefix represents one address, but the notation still describes a prefix block. Most CIDR blocks describe multiple addresses and are used for subnetting or route aggregation.

“Does every IP address have its own ASN?”

No. Many addresses can be within one prefix, and many prefixes can be originated or transited by one autonomous system. The relationship depends on network architecture and routing policy.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

“Can I infer the ASN from the first numbers of an IP address?”

No. IP address values and ASN values are separate namespaces. You need an authoritative registry or routing-data lookup to investigate an association, and the result may differ between registration and current BGP visibility.

“Does an ASN tell me where a server is?”

Not reliably. An ASN identifies a routing system, not a precise physical location, facility, or individual machine. A single AS can operate in multiple regions, while hosting providers may originate customer prefixes on the customer’s behalf.

Choosing the right term

  • Use IP address when identifying one interface, host, virtual machine, router interface, or endpoint.
  • Use CIDR block when describing an allocation, subnet, firewall range, access-control scope, or summarized route.
  • Use ASN when discussing BGP, external routing policy, route origin, transit, peering, or autonomous-system paths.

A useful diagnostic question is: “Am I naming one destination, a set of destinations, or the routing policy domain that exchanges routes?” The answer points to IP address, CIDR block, or ASN respectively.

Troubleshooting scenarios

A firewall rule accepts the wrong traffic

Check whether the rule expects a single address or a prefix. Entering 203.0.113.10/32 limits an IPv4 rule to one address; entering 203.0.113.0/24 covers the entire 256-address block. Verify the platform’s handling of network and broadcast addresses.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

A registered prefix is not reachable

Confirm that the prefix is actually announced, that the announcement is accepted by upstreams, and that return routing exists. Registration alone is not evidence of a working BGP path. Also check route filters, RPKI policy, ACLs, firewalls, and whether the address space is reserved for documentation or private use.

A team requests another ASN for a new site

First document the required external routing behavior. If the site can use the existing external policy, another ASN may add administrative complexity without solving a routing problem. If the site needs a distinct policy, multihoming behavior, or independent route control, discuss eligibility and design with the applicable RIR and providers.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Practical documentation checklist

  • Write the complete IP version and notation.
  • For a prefix, include the slash length and state whether the count is total or usable addresses.
  • For an ASN, identify the autonomous system and the routing context, such as BGP origin or transit.
  • Label documentation-only and private ranges so readers do not mistake them for production addresses.
  • Separate registry or allocation facts from current reachability observations.
  • Record the observation time when describing routes, because BGP state can change.

Or skip the browser setup

If you publish network diagrams or runbooks, an automated screenshot can capture the relevant documentation page without manually opening a browser. ScreenshotNeo accepts one GET request and returns a PNG, JPEG, WebP, or PDF. It removes cookie banners, newsletter popups, and chat widgets before capture; bot checks, blank pages, timeouts, failed loads, and cache hits are not billed. Its MCP server provides take_screenshot, get_page_info, and capture_pdf tools for Claude, Cursor, and other MCP clients. The free plan includes 1,000 screenshots per month without a card, and paid plans start at $5 for 3,000 shots.

See the ScreenshotNeo API documentation for all options.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

cURL

curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp

Python

import requests
r = requests.get("https://api.screenshotneo.com/v1/shot", params={"access_key": "YOUR_API_KEY", "url": "https://stripe.com"}, timeout=90)
open("shot.webp", "wb").write(r.content)

Node.js

const q = new URLSearchParams({ access_key: 'YOUR_API_KEY', url: 'https://stripe.com' });
const res = await fetch(`https://api.screenshotneo.com/v1/shot?${q}`);

Create a free ScreenshotNeo account to get the 1,000 monthly screenshots with no card.

Frequently Asked Questions

Can one organization have multiple ASNs?

Yes, when it operates distinct external routing policies and meets the applicable registry and provider requirements. Multiple ASNs are not automatically justified by having multiple offices or prefixes.

What is the difference between a subnet and a CIDR block?

CIDR is the notation and addressing method used to describe a prefix. A subnet is a network segment created within a larger address space; in many contexts its boundaries are expressed with CIDR notation.

Are IPv6 CIDR calculations the same as IPv4 calculations?

The prefix-length concept is the same, but IPv6 addresses contain 128 bits rather than 32. Use IPv6-specific capacity and allocation conventions.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.