All Products
Document Center

Elastic Compute Service:Overview

Last Updated:Aug 07, 2023

A prefix list is a set of one or more network prefixes (CIDR blocks). You can reference prefix lists to configure network rules for other resources. You can add frequently used CIDR blocks to prefix lists to eliminate the need to repeatedly add rules for CIDR blocks when you configure network rules. This improves O&M efficiency. Prefix lists can be referenced in security group rules.




maximum number of entries

The maximum number of CIDR blocks in a prefix list. Each entry consists of a CIDR block and the description for the CIDR block.

address family

The address family of entries in a prefix list. Prefix lists support the IPv4 or IPv6 address family. Entries in a prefix list must belong to the same address family.

CIDR block

CIDR is an addressing scheme for the Internet that allows for IP addresses to be assigned in a more efficient manner than the traditional scheme based on classes A, B, and C. CIDR notation is used to denote IP addresses and IP ranges. It consists of an IP address and a forward slash followed by a decimal number that denotes how many bits are in the network prefix.

  • Example 1: Convert a CIDR block into an IP address range

    For example, you can convert the CIDR block into a 32-bit binary IP address of 00001010.00000000.00000000.00000000. In this CIDR block, /8 represents an 8-bit network ID. The first 8 bits of the 32-bit binary IP address are fixed, and the corresponding IP addresses are from 00001010.00000000.00000000.00000000 to 00001010.11111111.11111111.11111111. After you convert the preceding IP addresses into IP addresses in the decimal format, the CIDR block indicates the IP addresses from to with a subnet mask of

  • Example 2: Convert an IP address range into a CIDR block

    For example, you have a range of IP addresses from to You can convert the last two parts of the first and last IP addresses to binary numbers from 00000000.00000000 to 00011111.11111111. The first 19 (8 × 2 + 3) bits are fixed. After you convert the IP addresses to IP addresses in the CIDR format, the corresponding CIDR block is

associated resource

A resource that references a prefix list.





Maximum number of prefix lists per region within an account



Maximum number of entries in a single prefix list



Maximum number of associated resources of a prefix list