Help Center/ Elastic IP/ User Guide/ Global Internet Gateways/ Creating a Global Internet Gateway
Updated on 2024-10-12 GMT+08:00

Creating a Global Internet Gateway

Scenarios

This section describes how to create a global internet gateway. A global internet gateway is used to connect the VPC where an ECS resides to the global EIP of the ECS. Global internet gateways are free of charge.

Notes and Constraints

Each VPC can only have one global internet gateway attached.

Procedure

  1. Go to the global internet gateway list page.
  2. In the upper right corner of the page, click Create Global Internet Gateway.

    The Create Global Internet Gateway is displayed.

  3. Configure the parameters based on Table 1.
    Table 1 Parameter descriptions

    Parameter

    Description

    Example Value

    Name

    Mandatory

    Enter the name of the global internet gateway. The name:
    • Must contain 1 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 global internet gateway.

    A global 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 global 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 global 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 global 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 global internet gateway.

    -

  4. Click OK.