Virtual Private Cloud
Which CIDR blocks are supported by Virtual Private Cloud (VPC)? How many available IP addresses are there in each CIDR block?
VPC supports two deployment modes: IPv4 single-stack and dual-stack (IPv4 & IPv6). ECS instances within a VPC can communicate via IPv4 (32-bit address length) or IPv6 (128-bit address length) addresses, with IPv4 and IPv6 being mutually independent.
- The following table describes the IPv4 CIDR blocks supported by VPC and the number of available IP addresses in each CIDR block.
- Since IPv6 addresses on the Volcano Engine platform are globally unique, the IPv6 CIDR blocks are automatically assigned by the system to avoid conflicts. The subnet mask of a VPC CIDR block is fixed at /56, and that of each subnet CIDR block is fixed at /64.
tip
Dual-Stack VPC is currently in beta. Only accounts that have completed enterprise authentication can apply for a trial. If you need a trial, contact your account manager. How does a VPC ensure the security of ECS instances?
- A VPC is a logically isolated network environment. Direct communication is not possible between different VPCs, nor between a VPC and the public network. Other products are required for the communication.
- The network interface of an ECS instance must be associated with a security group of the VPC. The security group controls the inbound and outbound traffic of the network interface. By default, all traffic is denied. You need to configure specific rules to allow traffic.
tip
To facilitate user experience, the system automatically adds specific rules to security groups and network ACLs to allow traffic. You can modify the rules based on your needs.
Can I change the VPC for an ECS instance?
Can different VPCs communicate with each other?
By default, different VPCs are fully isolated from one another. However, interconnection between them can be achieved using specific products.
Network interface
How do I distinguish the primary network interface and the secondary network interface?
- Primary network interface: When you create an ECS instance, the primary network interface is created by default along with the ECS instance. You cannot unmount the primary network interface from the ECS instance.
- Secondary network interface: A network interface that can be independently created, flexibly mounted, and unmounted.
To distinguish between the primary network interface and the secondary network interface of an ECS instance, perform the following steps:
- In the top menu bar, select a target region.
- In the left-side navigation pane, click "Instances".
- Click the name of the target ECS instance.
- Select the "Network Interface" tab. You can distinguish between the primary network interface and the secondary network interface from the "Type" column in the list.
Is there a limit on the number of network interfaces mounted to an ECS instance?
There is a limit on the number of network interfaces mounted to an ECS instance. The limit varies based on the ECS instance type. For more information, see Instance type list. Must the ECS instance and the secondary network interface to be mounted belong to the same VPC?
They must belong to the same VPC. However, you can mount secondary network interfaces from different subnets to an ECS instance to segment traffic.
Why is the network of a secondary network interface unreachable after I mount the secondary network interface to an instance?
Possible causes are as follows:
Why does access to the public network fail after I mount a secondary network interface to a Windows ECS instance?
After you mount a secondary network interface to a Windows ECS instance, the image automatically detects the secondary network interface and adds routes. However, the automatically added routes for the secondary network interface are equivalent to those of the primary network interface, which may result in public network-bound data transfer being routed to a network interface that does not have an associated Elastic IP address (EIP). Therefore, you need to manually specify the forwarding policy. For more information, see Modify network interface routes for a Windows instance. Can I change the EIP and private IP address of a network interface?
- You cannot change the primary private IPv4 address of a secondary network interface. However, you can change the primary private IPv4 address of the primary network interface by changing the VPC.
Can I unmount the primary network interface?
No, you cannot. The lifecycle of the primary network interface is consistent with that of the ECS instance. You cannot unmount the primary network interface.
What should I do if I fail to unmount a network interface?
Go to the ECS console and click "Support > Create ticket" in the top menu bar to obtain support. Why is an incorrect IP address displayed on a Windows instance after I mount, uninstall, or disable a network interface and perform other operations?
You can try to restart the instance. If the issue persists, execute ipconfig /release and ipconfig /renew commands within the instance to refresh the IP address.
Security group
How do I plan security groups appropriately?
Proper security group planning simplifies business traffic management and enhances security. For the planning principles and examples, see Planning security groups. How do I open a port?
You can add rules to the security group associated with the network interface of an ECS instance to allow traffic through the specified port. For more information, see Adding security group rules. What are the common ports for ECS instances?
How do I open port 25?
Port 25 is a high-risk port. VolcanoEngine blocks this port by default. Even if you open port 25 by specifying a security group rule, the port remains unavailable. Therefore, we recommend that you use other non-high risk ports. When port 25 is required for business purposes, submit a ticket to apply for its use. Only enterprise users are eligible to do so.
What do I do if I fail to access specific ports on the public cloud?
Issue phenomenon: Access to specific ports on the public cloud fails in some regions and with some line operators, while access to other ports is normal.
Issue analysis: Some line operators identify the ports listed in the following table as high-risk and block them by default.
Solution: We recommend that you change sensitive ports to other non-high risk ports for business use.
How to view which ports are opened on an ECS instance?
To view the ports opened on each network interface of an ECS instance, perform the following operations:
- In the top menu bar, select a target region.
- In the left-side navigation pane, click "Instances".
- Click the name of the target ECS instance.
- In the upper left corner on the "Security Group" tab, select the target network interface (the primary network interface or a secondary network interface).
- Select the "Inbound" or "Outbound" tab based on your needs to view the ports opened in the "Port range" column of the security group rules.
How do I change the security groups for an ECS instance?
To change the security groups for an ECS instance, you are essentially changing the security groups for the network interfaces mounted to the ECS instance. For more information, see Changing security groups. What are the differences between a security group and the Windows Firewall?
- They belong to different entities. A security group is a feature of VPC, and each network interface of an ECS instance must be associated with a security group. The Windows Firewall is part of the Windows operating system.
- Traffic path for Windows instances:
- Outbound: Traffic first passes through the Windows Firewall, and then through the security group, before accessing other cloud services or the public network.
- Inbound: Traffic from other cloud services or the public network first passes through the security group, and then through the Windows Firewall, before accessing applications on the Windows system.
- Their usage scenarios are different.
- A security group is mainly used to control inbound and outbound traffic for a set of network interfaces. It enables quick setup of traffic control systems between ECS instances, and between ECS instances and the public network.
- The Windows Firewall is primarily used to control traffic for applications running on the Windows system.
Why is a Windows instance with an associated EIP still unable to communicate with the public network even after the security group rules are configured to allow traffic?
Possible causes are as follows:
How can I see whether ports enabled in a security group take effect?
After you open a port by configuring the security groups associated with an ECS instance, you can use any of the following methods to verify whether the port of the ECS instance is reachable.
Method 1: telnet command
Method 2: nc command
On a terminal within the CIDR block allowed by the security group, execute the following command in the command line:
telnet <IP address of the ECS instance> <allowed port>
- If the port is not allowed, the request will persist until the operation times out.
- If the port is allowed but no service is deployed on it, a connection refused message will be returned.
- If the port is allowed and a service is deployed on it, a connection success message will be returned.
On a terminal within the CIDR block allowed by the security group, execute the following command in the command line:
nc -zv <IP address of the ECS instance> <allowed port>
- If the port is not allowed, the request will persist until the operation times out.
- If the port is allowed but no service is deployed on it, a connection refused message will be returned.
- If the port is allowed and a service is deployed on it, a connection success message will be returned.
Why can't I access services deployed on an ECS instance after I configure the security group for the instance?
Possible causes are as follows:
EIP
How to view the IP address of an ECS instance?
How can I view the price of an EIP instance?
You can view the price of an EIP instance on the price calculator page. The price calculator provides reference prices. The specific fees shall be subject to the actual order results in the EIP console. How do I view the EIP bandwidth of an instance?
To view the bandwidth upper limit of the EIP associated with an instance, perform the following operations:
Elastic IP addresses with different bandwidth specifications have different minimum bandwidth limits. Please refer to Fee Description for details. - In the left-side navigation pane, select "Instances & Images > Instances".
- In the top menu bar, select the region and project.
- In the list of instances, click the EIP of the target instance.
- View the bandwidth upper limit in the "Current configuration" section of the EIP details page.
How do I modify the configuration of the EIP associated with an ECS instance?
You can modify the configuration of the EIP associated with an ECS instance based on your needs. For more information, see Changing EIP configuration. How do I change the EIP of an ECS instance?
To change the EIP associated with the primary private IPv4 address of the primary network interface of an ECS instance, you first apply for an EIP, then disassociate the current EIP from the ECS instance, and finally associate the new EIP with the ECS instance. For information about how to change the EIP associated with either the secondary private IPv4 address of an ECS instance's primary network interface or the ECS instance's secondary network interface, see Associating/Disassociating an EIP. What changes will occur to the bandwidth when a pay-as-you-go EIP is added to a shared bandwidth package? What is the range of the bandwidth upper limit for a shared bandwidth package?
After an EIP is added to a shared bandwidth package, its original bandwidth upper limit becomes invalid, and it shares the bandwidth upper limit of the shared bandwidth package.
The bandwidth upper limit for a shared bandwidth package ranges from 2 to 5,000 Mbps.
Why does an ECS instance remain unable to connect to the Internet after being associated with an EIP?
An ECS instance is associated with an Elastic IP (EIP) when the EIP is associated with the primary private IPv4 address of the instance’s primary network interface. If the instance fails to access the Internet, the possible causes are described in the following table:
Why is the access latency of an ECS instance high?
Possible causes are as follows: