Creating an Internet Gateway
Scenarios
This section describes how to create an internet gateway. An internet gateway is used to connect the VPC where an ECS resides to the global EIP of the ECS . Internet gateways are free of charge.
Notes and Constraints
Each VPC can only have one internet gateway attached.
Procedure
- Log in to the management console.
- Click
in the upper left corner and select the desired region and project.
- Click
in the upper left corner and choose Networking > Elastic IP.
- In the navigation pane on the left, click Internet Gateways.
The internet gateway home page is displayed.
- In the upper right corner of the page, click Create Internet Gateway.
The Create Internet Gateway is displayed.
- Configure the parameters based on Table 1.
Table 1 Parameter descriptions Parameter
Description
Example Value
Name
Mandatory
Enter the name of the internet gateway. The name:- Must contain 0 to 64 characters.
- Can contain letters, digits, underscores (_), hyphens (-), and periods (.).
igw-89ad
Version
- IPv4: Mandatory
- IPv6: Optional
IPv4
VPC
Mandatory
Select the VPC of your instance (such as ECS) that needs to communicate with the Internet to attach the internet gateway.
An internet gateway is used work together with the global EIP of your instance for Internet access.
-
Subnet
Mandatory
Select the subnet where you want to bound the internet gateway.
-
Default Route
Optional
- If you select this option, the default route with the destination 0.0.0.0/0 will be automatically added to the default route table of the selected VPC to direct traffic to the internet gateway.
- If you do not select this option, you need to manually add a route to the route table (default or custom) associated with the VPC subnet of your ECS to direct traffic to the internet gateway.
NOTICE:If an error is reported when you select this option, this indicates that the default route with the destination 0.0.0.0/0 already exists in the default route table of the VPC. You can manually add a route to the route table (default or custom) associated with the VPC subnet of your ECS to direct traffic to the internet gateway.
-
- Click OK.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot