Help Center/ Virtual Private Cloud/ User Guide/ VPC and Subnet/ Subnet/ Viewing IP Addresses in a Subnet
Updated on 2026-06-09 GMT+08:00

Viewing IP Addresses in a Subnet

Scenarios

A subnet is an IP address range in a VPC. This section describes how to view the used IP addresses in a subnet.
  • Virtual IP addresses
  • Private IP addresses
    • Used by the subnet itself, such as the gateway, DHCP, and system interface.
    • Used by cloud resources, such as load balancers, ECSs, and RDS instances.

Constraints

  • A subnet cannot be deleted if its IP addresses are used by cloud resources.
  • A subnet can be deleted if its IP addresses are used by itself.

Procedure

  1. Go to the subnet list page.
  2. Locate the target subnet and click its name.

    The subnet details page is displayed.

  3. Click the IP Addresses tab to view the IP addresses in the subnet.
    1. In the virtual IP address list, you can view the virtual IP addresses assigned from the subnet.
    2. In the private IP address list in the lower part of the page, you can view the private IP addresses, the resources that use the private IP addresses of the subnet, and the resource ID.
      • If an IP address is idle, the IP address is not used by any instance. To release such an IP address, click Release in the Operation column.
      • If an IP address is used by an instance, the corresponding cloud service, for example, Elastic Load Balance (ELB) is displayed in the Used By column. You can click View Cloud Service in the Operation column to go to the cloud service console.
    Figure 1 Viewing IP addresses in a subnet
  4. (Optional) Perform the following operations to export the virtual IP addresses or the private IP addresses in the subnet.
    • To export virtual IP addresses, click Export in the upper left corner above the virtual IP address list.
      • Export selected data to an XLSX file: Select one or more virtual IP addresses to export information about the selected virtual IP addresses.
      • Export all data to an XLSX file: Export information about all the virtual IP addresses in the subnet.
    • To export private IP addresses in the subnet, click Export in the upper left corner above the private IP address list.
      • Export selected data to an XLSX file: Select one or more private IP addresses to export information about the selected private IP addresses.
      • Export all data to an XLSX file: Export information about all the private IP addresses in the subnet.

Follow-up Operations

If you want to view and delete the resources that are using the subnet, refer to Why Can't I Delete My VPCs and Subnets?