All Products
Search
Document Center

Elastic Compute Service:Manage the entries in a prefix list

Last Updated:Aug 07, 2023

Each entry in a prefix list consists of a CIDR block and a description for the CIDR block. You can add, modify, or delete entries for a prefix list based on your business requirements. This topic describes how to manage the entries in a prefix list.

Prerequisites

If RAM users are used, the RAM users are granted permissions on prefix lists. For more information, see Grant a RAM user permissions on prefix lists.

Limits

The following limits apply to 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 spaces or commas (,).
  • The address type of a CIDR block in each 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 192.168.1.0/24 twice in the entries of the 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 specified, 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 converts it into 2001:db8::/32.

Procedure

Manage the entries in a prefix list in the Elastic Compute Service (ECS) console

You can add, modify, or delete entries for a prefix list on the Prefix List Details page.

  1. Log on to the ECS console.

  2. In the left-side navigation pane, choose Network & Security > Prefix Lists.

  3. In the upper-left corner of the top navigation bar, select a region. Region

  4. On the Prefix List page, find the prefix list that you want to manage and click the ID of the prefix list.

  5. On the Prefix List Details page, manage the entries in the prefix list.

    • Add entries to the prefix list

      1. On the Entries tab, click Add.

      2. Enter a CIDR block in the CIDR Block field, enter a description for the CIDR block in the Description field, and then click Save.

      If you want to add multiple entries to the prefix list, repeat the preceding steps.

    • Modify entries in the prefix list

      1. On the Prefix List Details page, find the entry that you want to modify and click Modify in the Actions column.

      2. Modify the CIDR block and the description and then click Save.

    • Delete entries from the prefix list

      • To delete a single entry, find the entry and click Delete in the Actions column.

      • To delete multiple entries, select the entries and click Delete in the lower part of the Entries tab.

Manage the entries in a prefix list by calling an AP operation

Call the ModifyPrefixList operation to modify the name, description, or entries of a prefix list.