Help Center> Elastic IP > User Guide> Internet Gateways> Creating an Internet Gateway
Updated on 2024-02-02 GMT+08:00

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

  1. Log in to the management console.
  2. Click in the upper left corner and select the desired region and project.
  3. Click in the upper left corner and choose Networking > Elastic IP.
  4. In the navigation pane on the left, click Internet Gateways.

    The internet gateway home page is displayed.

  5. In the upper right corner of the page, click Create Internet Gateway.

    The Create Internet Gateway is displayed.

  6. 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.

    -

  7. Click OK.