By adding an SNAT entry, you can provide Internet proxy service for an ECS instance without a public IP to access the Internet.
Log on to the VPC console.
In the left-side navigation pane, click NAT Gateway.
Click the ID of the target NAT gateway to enter the page of gateway details.
In the left-side navigation pane, click SNAT Table and then click Create SNAT Entry.
Configure the SNAT entry according to the following information.
Configuration Description 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.
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.