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. This topic describes how to create a prefix list.

Prerequisites

If RAM users are used, the RAM users are granted permissions on prefix lists. For more information, see Grant RAM users permissions on prefix lists.
Note The prefix list feature is available only in some regions.

Procedure

  1. Log on to the ECS console.
  2. In the left-side navigation pane, choose Network & Security > Prefix List.
  3. In the top navigation bar, select a region.
  4. Click Create Prefix List.
  5. In the Create Prefix List dialog box, specify the parameters described in the following table for the prefix list.
    Create Prefix List
    Parameter Description
    Name Enter a name for the prefix list.
    Description Enter a description for the prefix list. We recommend that you describe the intended purpose of the prefix list.
    Address Family
    Select IPv4 or IPv6. After you create a prefix list, you cannot modify its address family.
    • If you select IPv4, you can specify only IPv4 CIDR blocks in the entries of the prefix list.
    • If you select IPv6, you can specify only IPv6 CIDR blocks in the entries of the prefix list.
    Max Entries Specify the maximum number of entries in the prefix list. After you create a prefix list, you cannot modify the maximum number of entries in the prefix list.

    Valid values: 1 to 200.

    Entries Specify the information of CIDR blocks in the prefix list. You can click Add Entries to add a CIDR block and enter a description for the CIDR block.
    The following limits apply to the entries in a prefix list:
    • The total number of entries cannot exceed the value set for Max Entries.
    • You can enter multiple CIDR blocks at a time. Separate multiple CIDR blocks with a space or a comma (,).
    • The address type of a CIDR block in an entry is determined by the Address Family parameter. You cannot combine IPv4 and IPv6 CIDR blocks in a single prefix list.
    • CIDR blocks within entries in a prefix list must be unique. For example, you cannot specify two 192.168.1.0/24 CIDR blocks within the same prefix list.
    • You can specify an IP address. The system automatically converts the IP address to a CIDR block.

      For example, if you specify 192.168.1.100, the system automatically converts the IP address to 192.168.1.100/32.

    • If an IPv6 CIDR block is used, the system automatically converts it to the zero compression format.

      For example, if you specify 2001:0DB8:0000:0000:0000:0000:0000:0000/32, the system automatically converts it to 2001:db8::/32.

  6. Click Create.

What to do next

You can perform the following operations after the prefix list is created: