edit-icon download-icon

Add an SNAT entry

Last Updated: Jan 25, 2018

By adding an SNAT entry, you can provide Internet proxy service for an ECS instance without a public IP to access the Internet.

Prerequisite

Buy a shared bandwidth package.

Procedure

  1. Log on to the VPC console.

  2. In the left-side navigation pane, click NAT Gateway.

  3. Click the ID of the target NAT gateway to enter the page of gateway details.

  4. In the left-side navigation pane, click SNAT Table and then click Create SNAT Entry.

  5. Configure the SNAT entry according to the following information.

    ConfigurationDescription
    VSwtich

    The VSwitch of the ECS instances that require the Internet access.

    By default, all ECS instances in the specified VSwitch can use the specified public IP to access the Internet.

    Note: If an ECS instance has already configured a public IP (such as an EIP), the previously configured public IP for the ECS instance is used to access the Internet, rather than using the SNAT proxy service.

    VSwitch CIDR Block Display the CIDR block of the selected VSwitch.
    Public IP

    The public IP that is used to access the Internet.

    Note: You cannot use a public IP that has already been added to a DNAT entry.

  6. Click Confirm.

    The status of the added SNAT entry is Configuring. Click Refresh to refresh the status. When the status is Available, the SNAT entry has been successfully added.

Thank you! We've received your feedback.