Managing Transit Subnets

A transit IP address assigned from a transit subnet is shared by servers in a VPC to access or provide services accessible from an on-premises server or a remote VPC.

Creating a Transit Subnet

  1. Log in to the management console.
  2. Click in the upper left corner and select the desired region and project.
  3. Under Network, click NAT Gateway.

    The NAT gateway console is displayed.

  4. In the navigation pane on the left, choose NAT Gateway > Private NAT Gateway.
  5. Click the Transit Subnets tab and then Create Transit Subnet.
  6. Set the parameters as prompted. For details, see Table 1.
    Table 1 Parameter descriptions

    Parameter

    Description

    Name

    The transit subnet name. The name can include up to 64 characters and can include digits, letters, underscores (_), and hyphens (-).

    VPC

    The public VPC that the transit subnet belongs to.

    Subnet

    The transit subnet to be created.

    Description

    Supplementary information about the transit subnet. The description can contain up to 255 characters.

Assigning a Transit IP Address

  1. Log in to the management console.
  2. Click in the upper left corner and select the desired region and project.
  3. Under Network, click NAT Gateway.

    The NAT gateway console is displayed.

  4. In the navigation pane on the left, choose NAT Gateway > Private NAT Gateway.
  5. Click the Transit Subnets tab and then click the target subnet name.

    The transit subnet details page is displayed.

  6. Click Assign Transit IP Address and set parameters as prompted.
    Table 2 Parameter descriptions

    Parameter

    Description

    Assignment Mode

    The assignment mode of the transit IP address.

    • Automatic
    • Manual

    IP Address

    This parameter is available when Assignment Mode is set to Manual. This IP address must be included in the transit subnet.

Other Operations

Modifying a Transit Subnet

You can modify the name, description, and total number of IP addresses of transit subnet.

  1. On the Transit Subnets tab page, locate the row that contains the target subnet, and click Modify or choose More > Apply to Change the Number of IP Addresses in the Operation column.
  2. Click OK.

Deleting a Transit Subnet

You can delete a transit subnet if you no longer need it.

After the transit subnet is deleted, instances in the corresponding VPCs can no longer communicate with others through the private NAT gateway.

  1. Locate the row that contains the transit subnet to be deleted and click the Delete in the Operation column.
  2. Click Yes.

Releasing a Transit IP Address

You can release a transit IP address if you no longer need it.

  1. In the transit IP address list on the transit subnet details page, locate the row that contains the target transit IP address and click Release in the Operation column.
  2. Click Yes.