• Virtual Private Cloud

vpc
  1. Help Center
  2. Virtual Private Cloud
  3. User Guide
  4. Getting Started
  5. Configuring a VPC for ECSs That Access the Internet Using EIPs
  6. Overview

Overview

If your ECSs need to access the Internet (for example, the ECSs functioning as the service nodes for deploying a website), you can follow the procedure shown in Figure 1 to bind EIPs to the ECSs.

Figure 1 Configuring the network

Table 1 describes the different tasks in the procedure for configuring the network.

Table 1 Configuration process description

Task

Description

Create a VPC.

This task is mandatory.

You must configure required parameters to create a VPC. The created VPC comes with a default subnet you specified.

After the VPC is created, you can create other required network resources in the VPC based on your service requirements.

Create another subnet for the VPC.

This task is optional.

If you need another subnet in addition to the default one, you can create a subnet in the VPC.

The new subnet is used to assign IP addresses to NICs added to the ECS.

Assign an EIP and bind it to an ECS.

This task is mandatory.

You can assign an EIP and bind it to an ECS to enable the ECS to access the Internet.

Create a security group.

This task is mandatory.

You can create a security group and add ECSs in the VPC to the security group to improve ECS access security.

After a security group is created, it has a default rule, which allows all outgoing data packets. ECSs in a security group can access each other without the need to add rules. If the default rule meets your service requirements, you do not need to add rules to the security group.

Add a security group rule.

This task is optional.

After a security group is created, it has a default rule, which allows all outgoing data packets. ECSs in a security group can access each other without the need to add rules. If the default rule does not meet your service requirements, you can add a security group rule.