IP addresses are used to connect to Elastic Compute Service (ECS) instances or services deployed on ECS instances. Two types of IP addresses can be assigned to ECS instances in the classic network: internal IP addresses and public IP addresses.
Internal IP addresses
- Load balancing
- Communication over the internal network between ECS instances within the same LAN
- Communication over the internal network between an ECS instance and other cloud services such as Object Storage Service (OSS) and ApsaraDB RDS within the same LAN
The internal IP addresses of ECS instances in the classic network are assigned by the system and cannot be modified. Do not change internal IP addresses within the operating systems. Otherwise, communication within the internal network may be interrupted.
Public IP addresses
If you set the public bandwidth of an instance to a value greater than 0 when you purchase the instance in the classic network, the system assigns a public IP address to the instance.
- Communication between ECS instances and the Internet
- Communication between an ECS instance and other cloud services that are not within the same LAN
- If you select Assign Public IP Address when you create an ECS instance in the classic network, the system assigns a public
IP address to the instance. For more information, see Create an instance by using the wizard.
Note After the system assigns a public IP address to an ECS instance in the classic network, you cannot release or disassociate the public IP address. If you set the public bandwidth of an instance to 0 Mbit/s when you downgrade the configurations of the instance during renewal or change the bandwidth of the pay-as-you-go instance, the instance cannot be connected to the Internet but the public IP address is retained.
- If you do not select Assign Public IP Address when you create an ECS instance in the classic network, you can assign a public IP address to the instance by modifying the outbound public bandwidth. For more information about how to modify the public bandwidth of a subscription ECS instance, see Modify the bandwidth configurations of subscription instances. For more information about how to modify the public bandwidth of a pay-as-you-go ECS instance, see Modify the bandwidth configurations of pay-as-you-go instances.
- You can modify the public IP address of an instance only within six hours after the instance is created. For more information, see Change the public IP address of an instance.
- When you manually release an ECS instance in the classic network, you can convert the public IP address of the instance into an elastic IP address (EIP). EIPs can be associated with ECS instances in virtual private clouds (VPCs) for a variety of scenarios such as network migration and flexible bandwidth adjustment. For more information, see Convert the static public IP address of an ECS instance in a classic network to an EIP.
Billing
Communication traffic generated by using internal IP addresses is free of charge.
You are charged only for outbound Internet traffic. For more information, see Public bandwidth.